google-maps-data-parameter-parser icon indicating copy to clipboard operation
google-maps-data-parameter-parser copied to clipboard

better type handling needed

Open david-r-edgar opened this issue 8 years ago • 0 comments

We should properly validate types of elements. Currently only 'm' (multi-element, branch nodes) are properly parsed. Leaf nodes are done implicitly. https://mstickles.wordpress.com/2015/06/12/gmaps-urls-options/ lists:

  • b: binary
  • d: decimal
  • e: enumerated
  • i: integer
  • j: date
  • s: string

In addition, I have found:

  • f: floating point value

Because we don't detect types, we currently overrun when the parameter has other data following it. (Also because I'm not sure of the correct terminating character syntax - is ';' always invalid inside the protocol buffer, or just for 'mv:', or what?)

This is illustrated by this url.

david-r-edgar avatar Mar 21 '17 22:03 david-r-edgar