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
$ node t.js
Swagger schema validation failed.
Data does not match any schemas from 'oneOf' at #/paths///post/requestBody
Data does not match any schemas from 'oneOf' at #/paths///post/requestBody/content/application/json/schema
Data does not match any schemas from 'oneOf' at #/content/application/json/schema/items
Expected type object but found type array at #/items
Expected type object but found type array at #/items
Missing required property: $ref at #/content/application/json/schema
Missing required property: $ref at #/paths///post/requestBody
JSON_OBJECT_VALIDATION_FAILED
Expected behavior
No errors.
Additional information
There are no errors in previous version 7.x:
$ npm i swagger-parser@7
+ swagger-parser@7.0.1
removed 1 package, updated 1 package and audited 128 packages in 1.37s
found 0 vulnerabilities
$ node t.js
done
The text was updated successfully, but these errors were encountered:
ikokostya
changed the title
Vaildation error for tuple
Vaildation error for tuple since version 8.0.0
Jul 10, 2019
Versions
8.0.0
v10.16.0
Description
swagger-parser
in version8.0.0
stops validate tuples in response schema.Code example
Actual behavior
Validation error:
Expected behavior
No errors.
Additional information
There are no errors in previous version
7.x
:The text was updated successfully, but these errors were encountered: