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

Support key with underscore in jsonpath dot notation #269

Closed
Morreski opened this issue Oct 5, 2021 · 2 comments
Closed

Support key with underscore in jsonpath dot notation #269

Morreski opened this issue Oct 5, 2021 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@Morreski
Copy link

Morreski commented Oct 5, 2021

Hi all,

Thank you for this awesome project. I'd like to report what seems to be a bug => when we want to assert against a JSON key that contains an underscore we encounter an error: the jsonpath expression is not valid

How to reproduce ?

With this assert block:

[Asserts]
jsonpath "$.username" exists
jsonpath "$.user_name" exists

The first assertion works but the second raises an error.

Cheers,

@fabricereix
Copy link
Collaborator

You're right. Thanks for reporting it.
We will fix for the next release.

@fabricereix fabricereix added bug Something isn't working 1.4.0 labels Oct 5, 2021
@lepapareil lepapareil added this to the 1.4.0 milestone Oct 8, 2021
@fabricereix
Copy link
Collaborator

The _ (underscore) has been added in the dot notation in #285.

@fabricereix fabricereix changed the title Jsonpath expression error when key contains an underscore Support key with underscore in jsonpath dot notation Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants