Re: URI Template expanded examples

On Feb 26, 2010, at 6:59 AM, Joe Gregorio wrote:

> I like the list of examples, but believe it should be expanded to not only 
> cover the typical cases, but to also cover edge cases and things that may be
> tricky or non-obvious from the spec text. 
> 
>  .-----------------------------------------------------------------.
>  | Sec | Op  | Description                                         |
>  |     |     |    Expression      | Expansion                      |
>  |-----+-----+-----------------------------------------------------|
>  | 2.2 |     | Reserved operators                                  |
>  |     |     |                                                     |
>  |     |     |    {|var}            {|var}                         |
>  |     |     |    {!hello}          {!hello}                       |
>  |     |     |    {@var}            {@var}                         |
>  |     |     |    {$var}            {$var}                         |
>  |     |     |    {(var}            {(var}                         |
>  |     |     |    {)var}            {)var}                         |
> 
> 
> emptylist  := [ ];
> emptykeys  := [ ];
> 
>  |-----+-----+-----------------------------------------------------|
>  | 3.6 |     |                                                     |
>  |     |     |    X{?emptylist}      X                             |
>  |     |     |    X{?emptykeys}      X                             |
>  | 3.7 |     |                                                     |
>  |     |     |    X{/emptylist}      X                             |
>  |     |     |    X{/emptykeys}      X                             |
>  | 3.8 |     |                                                     |
>  |     |     |    X{.emptylist}      X                             |
>  |     |     |    X{.emptykeys}      X                             |
> 
>    Thanks,
>    -joe

Okay, but I put them in the examples under Defaults for now.

....Roy

Received on Saturday, 27 February 2010 01:39:39 UTC