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
Adding a second api spec (per express-openapi-validator/examples/2-standard-multiple-api-specs), results in API returns from the second set of API being validated against the schema in the first set.
This is easily reproducible by editing express-openapi-validator/examples/2-standard-multiple-api-specs/app.js to enable response validation. E.g.,
Adding a second api spec (per
express-openapi-validator/examples/2-standard-multiple-api-specs
), results in API returns from the second set of API being validated against the schema in the first set.This is easily reproducible by editing
express-openapi-validator/examples/2-standard-multiple-api-specs/app.js
to enable response validation. E.g.,Running
curl 'localhost:3000/v2/pets?pet_type=kitty' | jq
shows schema violations reported against thev1
schema:Note: I encountered this in my project where an embedded $ref was used to look up a schema against a set of paths from a >previous< apiDoc.
The text was updated successfully, but these errors were encountered: