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

Leaving out "description" in "responses" throws "Data does not match any schemas from 'oneOf'" error #1321

Closed
yan-foto opened this issue May 29, 2015 · 1 comment

Comments

@yan-foto
Copy link

Consider the following example in Yaml:

/pets/{id}:
    get:
      summary: Retrieve information about a pet
      responses:
        200:
          schema:
            $ref: '#/definitions/Pet'

this would throw Data does not match any schemas from 'oneOf' which is misleading since adding the description would solve the problem. It would be great if the error code could be corrected.

@yan-foto yan-foto changed the title Leaving out description in responses throws Data does not match any schemas from 'oneOf' error Leaving out "description" in "responses" throws "Data does not match any schemas from 'oneOf'" error May 29, 2015
@webron
Copy link
Contributor

webron commented May 29, 2015

This is unfortunately beyond our control right now. This is a matter of third party schema validators and the errors they produce. Unfortunately, they tend to produce errors that are not user friends, although accurate. This does mean there's a need to understand concepts in JSON Schema.

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