-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support escaping :
and *
#23
Comments
I think escaping with |
Just opened this (and linked) from Axum. I would also like to propose using |
Excluded `*` since it is known to not be supported yet, see ibraheemdev#23.
excluded `*` since it is known to not be supported yet, see #23.
With the release of 0.8, the route parameter syntax has changed to use |
I'm using this library by proxy of Axum, and ran into an issue in that the router would not accept path segments that contained multiple
:
characters, greeting me with the error:Invalid route "/Schemas/urn:ietf:params:scim:schemas:core:2.0:User": only one parameter is allowed per path segment
, corresponding to theTooManyParams
error variant defined in this crate.Could either the syntax be altered to support escaping the
:
and*
characters with a prefix like\
, or have the insert method treat the whole path section as a literal if it doesn't start with a:
or*
, or add an.insert_components()
function that takes a slice ofenum Component<'a>{Literal(&'a str), Param, Wildcard, Separator}
and uses that to determine the matching criteria?The text was updated successfully, but these errors were encountered: