adobe / json-formula

Query language for JSON documents
http://opensource.adobe.com/json-formula/
Apache License 2.0
19 stars 8 forks source link

Type coercion in `values` does not match spec #138

Closed Eswcvlad closed 5 months ago

Eswcvlad commented 5 months ago
Expression Result
values(`false`)|[]
values(`true`)|[]
values(-42)|[]
values("random")|["r","a","n","d","o","m"]
values([0,1,2])|[0,1,2]

Per spec you would expect TypeError in such cases. From what I gathered, in JMESPath it is also an error.