-
Notifications
You must be signed in to change notification settings - Fork 43
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 for curly brackets url syntax #49
Comments
this could be solved cleanly by adding and implementing an optional then one should be able to configure url-pattern with the following options to do what you want: {
segmentNameStartChar: "{",
segmentNameEndChar: "}",
} i don't have time to do that right now. |
Can I take up this issue? Are you looking to accept a PR for this? |
hey @arpitsingh94, i'm in the process of converting url-pattern from coffeescript to typescript on this branch: https://github.com/snd/url-pattern/tree/coffeescript-to-typescript the code conversion is done and the tests still pass. i'll post a note here once the conversion is complete |
ok sure. |
I understand most libraries use:
/users/:id
but Swagger, the no1 lib for defining API contracts and mocking, uses:
/users/{id}
I need to parse the Swagger-style syntax.
This is a request for that support to be added.
Thanks
The text was updated successfully, but these errors were encountered: