- is not valid in unquoted identifiers as it is used for negative numbers
But the simulator on the jmespath front page does not complain.
I wasn't familiar with jmespath and tried to build a valid expression, then carried it to the application I wanted to use it with and wondered for some hours why it didn't do what I wanted.
Example:
Expression:
contains(resource_access.monitoring-application.roles[*], 'admin') && 'I am ze admin!'
According to the spec (and https://github.com/jmespath/jmespath.rb/issues/12),
But the simulator on the jmespath front page does not complain.
I wasn't familiar with jmespath and tried to build a valid expression, then carried it to the application I wanted to use it with and wondered for some hours why it didn't do what I wanted.
Example:
Expression:
contains(resource_access.monitoring-application.roles[*], 'admin') && 'I am ze admin!'
Document:
The above should not be valid, but returns "I am ze admin!". The go implementation errors out with "SyntaxError: Invalid token: tNumber"