vmware-labs / yaml-jsonpath

JSONPath implementation for the gopkg.in/yaml.v3 node API
Other
49 stars 12 forks source link

Invalid path does not cause an error #6

Closed glyn closed 4 years ago

glyn commented 4 years ago

The path "]" does not cause NewPath to fail.

glyn commented 4 years ago

The "]" was being aborbed by the code which parses an undotted child, which ends up being somewhat of a catch-all. This may be an argument against supporting undotted children. But for now, we'll live with them.