-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
path
type path params can have default or be optional
#219
Labels
documentation
Improvements or additions to documentation
Comments
yea, I updated |
@Ethosa I think this is worth mentioning in the documentation. When specifying a default value for a path path parameter, the value may contain a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to document
But in fact, HappyX can handle it without problem (checked with
-d:spaDebug
), with one exception$p:path=/
, this generates incorrect regex (re2("^/photo-rename([\\S]+)=/$")
), but{p:path=/}
work as expect.Currently, if there is a problem with the processing of path parameters, you can only use
-d:spaDebug
or-d:ssrDebug
to view the generated code to confirm that it matches your expectations. Would it be appropriate to change this to a compile-time error?The text was updated successfully, but these errors were encountered: