Skip to content

Multiple response schemas fail #131

@shuat

Description

@shuat
responses:
        "200":
          description: Success
          schema:
            oneOf:
              - $ref: "#/definitions/UserWithInt"
              - $ref: "#/definitions/UserWithString"

I get the following error

{ errors:
   [ { code: 'ONE_OF_MISSING',
       message: 'Not a valid response definition',
       path: [Array],
       inner: [Array] } ],
  warnings: [] }

However according to swagger specs this should be allowed.

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