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

Add test for non-escaped U+007F (DEL control character) #88

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

Marcono1234
Copy link
Contributor

@Marcono1234 Marcono1234 commented Aug 1, 2024

The JSONPath specification says only the control characters 0x00 to 0x1F must be escaped (same as for JSON). The control character 0x7F (DEL) does not have to be escaped.

However, some JSON libraries are too strict and reject a non-escaped 0x7F, see also nst/JSONTestSuite#118.
Therefore this test makes sure JSONPath implementations don't make the same error.

@f3ath
Copy link
Collaborator

f3ath commented Aug 2, 2024

Thank you! Looks good. I'll approve once the conflicts are resolved.

@Marcono1234
Copy link
Contributor Author

Sorry, have resolved the conflict now.

Copy link
Collaborator

@gregsdennis gregsdennis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passes for me.

@gregsdennis gregsdennis merged commit 744c90d into jsonpath-standard:main Aug 3, 2024
2 checks passed
@Marcono1234 Marcono1234 deleted the non-escaped-del branch August 3, 2024 13:08
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

Successfully merging this pull request may close these issues.

3 participants