Closed aaiezza closed 5 years ago
According to the RFC, dashes are not allowed in variable names.
Duplicates #799.
@gregturn you're raining on my parade here 😂 Thank you for pointing it out. As it happens, I now have comments for the "Request for Comments" RFC.
On another note, should longer variable names use underscores then or camel case?
The UriTemplate cannot successfully identify a query parameter with hyphens in it.
Example:
https://api.app.com/user{?send-verification-email}
RFC 6570 does not discourage this type of syntax, though sadly does not give an example of it. However, I think it should be made allowed.I would propose that the new regex for identifying templated uris be: