Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple cases not being displayed in one http code in swagger editor #2220

Closed
rssubham88 opened this issue Apr 30, 2020 · 1 comment
Closed

Comments

@rssubham88
Copy link

Hi, I have multiple error cases under http status 400. But swagger editor is not displaying it properly rather it is fetching it from the reference defined
I want it should display the structure I am creating :

    '400':
      description: 'Failure - Bad request'
      schema:
        $ref: '#/definitions/faultResponse'
      examples:
        No Chain:
          fault:
            code: '-1'
            message: 'Mandatory request header(s) not found or invalid'
            httpStatus: 400  
        No Chain2:
          fault:
            code: invalidRequest
            message: Invalid request
            providerCode: '400'
            failures:
              - message: 'Invalid type,  abcid (value as provided in request)'
                providerCode: '-4'
            httpStatus: 400
        No Chain3:
          fault:
            code: invalidRequest
            message: Invalid request
            providerCode: '400'
            failures:
              - message: 'Invalid type, xyzid (value as provided in request)'
                providerCode: '-5'
            httpStatus: 400
@handrews
Copy link
Member

Hi- this repository is for the specification only. Please raise tooling issues with the tooling vendor (Swagger / SmartBear in your case). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants