-
-
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
how ignorePaths work? #245
Labels
bug
Something isn't working
Comments
thanks @mirekgw , just checked the code |
should have a fix soon see #247 |
fix is in |
@mirekgw did you have success with the fix? Note, i also made some updates to the README. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to not validate request data for specific path and I was trying to use ignorePaths, but it seems it's not working as I tough.
I have a path in openapi .yaml file that I would like to exclude from body verification. But I would still like to use param parsing that openapi validator is doing (in
applyOpenApiMetadata
function).I'm seeing when request is processed that
lookupRoute()
inapplyOpenApiMetadata()
is matching my request and code never goes intoopenApiContext.isManagedRoute
, and that is the only place whereignorePaths
is used.My assumption is that fix for this problem may be that
ignorePaths
property is checked inbuildMiddleware()
or maybe invalidate()
function in openapi.request.validator.jsCould you please explain how ignorePaths should work as documentation is very brief.
Thanks
The text was updated successfully, but these errors were encountered: