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
When I'm trying to validate a django request against the defined schema I'm getting a validation error.
E openapi_core.templating.paths.exceptions.PathNotFound: Path not found for https://brown.org/^my/url/$
../.pyenv/versions/3.9.0/envs/venv3.9.0/lib/python3.9/site-packages/openapi_core/templating/paths/finders.py:24:PathNotFound
My django url definition: re_path(r'^my/url/$', view())
My openapi schema url: /my/url/
I've debbugged a bit this issue and: value of this line should be: 'my/url/'
but currently is '^my/url/$'
The value of request.resolver_match.route in my case is '^my/url/$'
I think the PATH_PARAMETER_PATTERN regex should be adjusted to escape also special characters like ^ and $ from request.resolver_match.route value
The text was updated successfully, but these errors were encountered:
When I'm trying to validate a django request against the defined schema I'm getting a validation error.
My django url definition:
re_path(r'^my/url/$', view())
My openapi schema url:
/my/url/
I've debbugged a bit this issue and:
value of this line should be:
'my/url/'
but currently is
'^my/url/$'
The value of
request.resolver_match.route
in my case is'^my/url/$'
I think the PATH_PARAMETER_PATTERN regex should be adjusted to escape also special characters like
^
and$
from request.resolver_match.route valueThe text was updated successfully, but these errors were encountered: