ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Virtual service is not created from Swagger 3.0

book

Article ID: 212712

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

When creating virtual service even after the swagger 3.0 patch. But it was impossible.

Cause

In the yaml file, there were $ref definitions in the "parameters:" part like:

parameters:

- $ref: '../common/commonComponents.yaml#/components/parameters/x-messageId'

- $ref: '../common/commonComponents.yaml#/components/parameters/x-appCorrelationId'

- $ref: '../common/commonComponents.yaml#/components/parameters/x-originatingSystemId'

- $ref: '../common/commonComponents.yaml#/components/parameters/x-originatingDeviceId'

- $ref: '../common/commonComponents.yaml#/components/parameters/x-consumerType'

- $ref: '../common/commonComponents.yaml#/components/parameters/x-channelType'

These are not part of schema.

Environment

Release : 10.6

Component : CA Service Virtualization

Resolution

The way for defining the parameters are defined is not supported by Devtest, because DevTest cannot resolve the component specified as parameters.