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
Hi,
When I have some path, eg. /example.html with redirection when there is trailing slash (so /example.html/ will be redirected to /example.html), validation throwing error that i wasn't specified 301 Redirect as possible response. But in my opinion, /example.html/ and /example.html are different paths, and shouldn't be treat the same way.
I'm using ver 0.18
Code providing that utility is here: \League\OpenAPIValidation\PSR7\PathFinder::104
I suggest, to make that behavior optional, for example by passing some config named "trim trailing slashes from path"
What do you think?
The text was updated successfully, but these errors were encountered:
Hi,
When I have some path, eg.
/example.html
with redirection when there is trailing slash (so/example.html/
will be redirected to/example.html
), validation throwing error that i wasn't specified 301 Redirect as possible response. But in my opinion,/example.html/
and/example.html
are different paths, and shouldn't be treat the same way.I'm using ver 0.18
Code providing that utility is here:
\League\OpenAPIValidation\PSR7\PathFinder::104
I suggest, to make that behavior optional, for example by passing some config named "trim trailing slashes from path"
What do you think?
The text was updated successfully, but these errors were encountered: