-
Notifications
You must be signed in to change notification settings - Fork 41
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
optional uri queryparams #23
optional uri queryparams #23
Conversation
@@ -50,6 +50,7 @@ class UriParser extends UriPattern { | |||
|
|||
final UriTemplate template; | |||
final bool _fragmentPrefixMatching; | |||
final bool _queryParamsAreOptional; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not the best name. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's private and sounds good in an if statement, so it's fine by me
Fixes #14 |
Thanks for the patch! |
UriParser(UriTemplate this.template, {bool fragmentPrefixMatching: true}) | ||
: _fragmentPrefixMatching = firstNonNull(fragmentPrefixMatching, true) { | ||
UriParser(UriTemplate this.template, {bool fragmentPrefixMatching: true, | ||
bool queryParamsAreOptional: false}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style nit: when wrapping named parameters I like to just put every one on a new line
Looks good. Can you squash the commits? Thanks! |
a0b49a0
to
ceeb21b
Compare
OK PR review changes applied and commit squashed. Please merge and publish to pub |
optional uri queryparams
Thanks! |
Great work! Don't forget to close out #14 @sethladd or @justinfagnani |
thanks @justinfagnani Please publish to pub |
Justin, this is an initial stab at supporting optional query params for matching.
Once we get to the point where you are happy with it I'll tidy up and squash the commits