BetSmartMedia/Lazorse — Issue #2: Inconsistent data types returned
Author: grncdr
Created: 2011-11-22 03:47:20+00:00
State: open

(originally from @juddv here: https://github.com/grncdr/uri-template/issues/1)

If I have a route "/endpoint/{thingy}/abc/{stuff}" and I omit {thingy}, then uri-template returns the 'thingy' variable as an empty array.

However, if I do specify {thingy} on the commandline, then uri-template returns a string.

Can uri-template be made to return consistent data types, or omit 'thingy' from the variable object entirely if it is missing?

Thanks.