Skip to content
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

shelf_router_generator: does not handle $ in the URL #10

Closed
kevmoo opened this issue Jun 18, 2019 · 3 comments
Closed

shelf_router_generator: does not handle $ in the URL #10

kevmoo opened this issue Jun 18, 2019 · 3 comments
Assignees
Labels
bug Something isn't working pkg:shelf_router_generator

Comments

@kevmoo
Copy link
Collaborator

kevmoo commented Jun 18, 2019

See https://github.com/dart-lang/json_serializable/blob/master/json_serializable/lib/src/utils.dart#L168 for help!

@jonasfj jonasfj added bug Something isn't working pkg:shelf_router_generator labels Jun 18, 2019
@jonasfj
Copy link
Member

jonasfj commented Jun 18, 2019

I assume this is a problem with code generation when the URL-patterns contain $, and not to do with the actual URLs for requests coming in.

We are using code.literal from package:code_builder, so this might be something that needs fixing there.

return router.property('add').call([
code.literal(handler.verb.toUpperCase()),
code.literal(handler.route),
service.property(handler.element.name),
]).statement;

@kevmoo
Copy link
Collaborator Author

kevmoo commented Jun 18, 2019 via email

jonasfj added a commit to jonasfj/dart-neats that referenced this issue Jul 16, 2019
@jonasfj jonasfj mentioned this issue Jul 16, 2019
@jonasfj jonasfj self-assigned this Jul 16, 2019
jonasfj added a commit that referenced this issue Jul 17, 2019
@jonasfj
Copy link
Member

jonasfj commented Dec 18, 2019

Fixed in #16.

@jonasfj jonasfj closed this as completed Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg:shelf_router_generator
Projects
None yet
Development

No branches or pull requests

2 participants