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 response schemas fail #131

Open
shuat opened this issue Jun 11, 2018 · 1 comment
Open

Multiple response schemas fail #131

shuat opened this issue Jun 11, 2018 · 1 comment

Comments

@shuat
Copy link

shuat commented Jun 11, 2018

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.

@theganyo
Copy link
Collaborator

This would be an error in the OpenAPI library being used: https://github.com/apigee-127/sway. I'd check there to see if it's a known issue and report it there if not.

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