-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Response validator not working when referencing same responses #576
Comments
Is there a fix/workaround for this? Having some trouble splitting my OpenAPI-spec into multiple files and I suspect this is the cause. |
@LarsV123 Hey, looks like adding this to config solves my issue. https://github.com/cdimascio/express-openapi-validator#%EF%B8%8F-refparsermode-optional
|
@LarsV123 Hey, looks like adding this to config solves my issue. https://github.com/cdimascio/express-openapi-validator#%EF%B8%8F-refparsermode-optional
|
Describe the bug
It happens only if you have multiple responses referencing same file in multiple paths.
I have created a repo with this bug: https://github.com/crudo/express-openapi-validator-issue-2
Very similar to #553 but this time response validation is not working.
eg.
Having:
This will fail:
This will NOT fail:
It will not fail, if you reference response only once:
or
To Reproduce
https://github.com/crudo/express-openapi-validator-issue-2
Actual behavior
Expected behavior
Examples and context
https://github.com/crudo/express-openapi-validator-issue-2
The text was updated successfully, but these errors were encountered: