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
Describe the bug
When you use schemas that are defined in an external file and try to reuse this schema several times, the validations to the schema are completely ignored
To Reproduce
Create a an external file external.ref.yaml with the next content:
Describe the bug
When you use schemas that are defined in an external file and try to reuse this schema several times, the validations to the schema are completely ignored
To Reproduce
Create a an external file
external.ref.yaml
with the next content:And then create a simple API with the next 2 post paths:
Actual behavior
See that the schema validations for post1 and post2 are not applied.
Expected behavior
Validations that are defined in the API should be applied.
Fox example, sending to POST to /pets1 with body { "name": null } should fail
Examples and context
See last commit from this repo to reproduce the error, there are 2 new tests failing due to this bug https://github.com/hiuxmaycry/express-openapi-validator
The text was updated successfully, but these errors were encountered: