jaystack / odata-v4-parser

OData v4 parser
38 stars 41 forks source link

Parsing Stringified ints #27

Open ztalarick opened 2 years ago

ztalarick commented 2 years ago

Hello, I need to parse stringified Ids as a key.

"1234 eq 'foo'"

the 1234 here is being parsed as a number. When evaluating an expression against something like this: { '1234': 'foo' }

can anyone think of a workaround here?

the Docs here don't specifically prohibit using stringified numbers http://docs.oasis-open.org/odata/odata-json-format/v4.01/odata-json-format-v4.01.html#sec_Entity