Skip to content

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

@rssubham88

Description

@rssubham88

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions