uri-templates/uritemplate-test — pull request #20 by hannesg (2012-07-29 19:17:13+00:00)
Title: Added an example with special characters in an associative array

Hi,

I added one more example. I'm only 95% sure on whether it's correct, but I guess the array keys have to be escaped as shown in the example according to ( http://tools.ietf.org/html/rfc6570#section-3.2.1 ):

For a variable that is an associative array, expansion depends on
both the expression type and the presence of an explode modifier. [...]
If there is an explode modifier, expansion consists
of appending each pair that has a defined value as either
"name=value" or, if the value is the empty string and the expression
type does not indicate form-style parameters (i.e., not a "?" or "&"
type), simply "name". Both name and value strings are encoded in the
same way as simple string values.

Thank you
Hannes