Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DocumentContext map creates new property under certain conditions #438

Closed
knservis opened this issue Feb 16, 2018 · 0 comments
Closed

DocumentContext map creates new property under certain conditions #438

knservis opened this issue Feb 16, 2018 · 0 comments

Comments

@knservis
Copy link

knservis commented Feb 16, 2018

Hi,

I have created a failing test case to demonstrate the issue here:
knservis@e8d54c4

Basically when using DocumentContext.map and one of the paths is non-existent like $.exists.['exists', 'does-not-exist'] the map will be called twice and will create a new property (the output will contain an empty object under that key).

Is this a feature or a bug? @jochenberger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant