You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/pets/{id}:
get:
summary: Retrieve information about a petresponses:
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.
The text was updated successfully, but these errors were encountered:
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
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.
Consider the following example in Yaml:
this would throw
Data does not match any schemas from 'oneOf'
which is misleading since adding thedescription
would solve the problem. It would be great if the error code could be corrected.The text was updated successfully, but these errors were encountered: