jmespath / jmespath/jmespath.js

Bug with dashses in unquoted strings

Open
#67 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
847
Forks
101
PR merge metrics
No merged PRs in 30d

Description

The following query:

```
data.relationships.flow-actions.data[].id
```

is invalid syntax according to the specification, because dashes are not allowed in unquoted strings, however this library allows it. I guess we are missing a spec compliance test that asserts there's a parse error. FYI, the PHP implementation is correct, and rejects that input.

The origin of this report is https://github.com/jmespath/jmespath.php/issues/57#issuecomment-571821595.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.