-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
express-openapi-validator + @apidevtools/json-schema-ref-parser leads to an error in 5.2.0 #939
Comments
@EvgenijHenning , hi! |
Can you provide a canonical version of your api spec that can be used to reproduce this issue. |
openapi.yaml
src/api/controllers/session.ts
Its work in 5.1.6, but after 5.2.0 I have an error "location is not defined" |
@vganzin I didn't. I rolled back to the old version and since then I had no time to look further into it. Thanks for providing an example to reproduce the error. |
@cdimascio my tree in session.js full path in my docker container "opt/production/application/app.js |
Describe the bug
Since 5.2.0 I'm getting an error with the express-openapi-validator. With the previous 5.1.6 everything was finde. After some digging I could narrow it down to the json-schema-ref-parser.
While the initial loading is fine the validator throws exceptions on any endpoint call. The stack looks like:
To Reproduce
I'll try to setup a repo for testing.
Actual behavior
Starting up the server is fine but as soon as you call a route the exception is thrown.
Expected behavior
The bug is only in 5.2.0 and going back to 5.1.6 resolves the issue.
Examples and context
This is how I load the openapi.yaml file in
The text was updated successfully, but these errors were encountered: