Closed BryanWilhite closed 1 year ago
According to the RFC 6570 section 2.3 on var names only the following characters are allowed in the variable name:
And then proceeds to define
A varname MAY contain one or more pct-encoded triplets. These triplets are considered an essential part of the variable name and are not decoded during processing
So the current behavior you're describing follows the specification.
Closing since this is an old issue.
The following will throw a
Malformed template
error:This will work fine:
Is the use of a hyphen in
api-version
a violation of URI Template Spec RFC6570?Interestingly, this will work:
{?api%2Dversion}
but not convert to-
.