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
While generating scheme, the following error appears in the logs: Error #0: namespace versioning path resolution failed for /v1/accounts/{parent_lookup_account_transactions}/transactions/{id}/. path will be ignored.
I use drf-extensions for Nested Routes.
URL Pattern for url "/v1/accounts/{parent_lookup_account_transactions}/transactions/{id}/."
is ^accounts/(?P<parent_lookup_account_transactions>[^/.]+)/transactions/(?P<pk>[^/.]+)/$
I noticed, detype_pattern function transform my URLPattern to another one, but if I have more than one path parameter, it will return me unexpected result:
URL Pattern "^accounts/(?P<parent_lookup_account_transactions>[^/.]+)/transactions/(?P<pk>[^/.]+)/$" transforn to "^accounts/(?P<parent_lookup_account_transactions>[^/.]+)/$"
I suppose it's a mistake in regular expression
The text was updated successfully, but these errors were encountered:
ruscooler
changed the title
Error: namespace versioning path resolution failed for {url}. path will be ignored.,
Error: namespace versioning path resolution failed for {url}. path will be ignored.
Oct 16, 2020
hey @ruscooler, that is indeed a bug in the regex. lazy is the way to go 😄 thanks for fixing it.
your proposed change is a significant improvement, although i just noticed that there are still ways to break it. like trying to match a literal paranthesis \) (regexr) in the pattern. however i'm assuming that this is a lot less frequent than having 2 or more variables.
i will merge it as is but if you want to come up with an even better regex i'm all for it.
While generating scheme, the following error appears in the logs:
Error #0: namespace versioning path resolution failed for /v1/accounts/{parent_lookup_account_transactions}/transactions/{id}/. path will be ignored.
I use drf-extensions for Nested Routes.
URL Pattern for url "/v1/accounts/{parent_lookup_account_transactions}/transactions/{id}/."
is
^accounts/(?P<parent_lookup_account_transactions>[^/.]+)/transactions/(?P<pk>[^/.]+)/$
I noticed, detype_pattern function transform my URLPattern to another one, but if I have more than one path parameter, it will return me unexpected result:
URL Pattern
"^accounts/(?P<parent_lookup_account_transactions>[^/.]+)/transactions/(?P<pk>[^/.]+)/$"
transforn to"^accounts/(?P<parent_lookup_account_transactions>[^/.]+)/$"
I suppose it's a mistake in regular expression
The text was updated successfully, but these errors were encountered: