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

Fix escaping in JSON pointers #29

Merged
merged 2 commits into from Jan 10, 2022
Merged

Conversation

grktsh
Copy link
Contributor

@grktsh grktsh commented Jan 26, 2020

#13 refers old draft specification. RFC 6901 says:

   Because the characters '~' (%x7E) and '/' (%x2F) have special
   meanings in JSON Pointer, '~' needs to be encoded as '~0' and '/'
   needs to be encoded as '~1' when these characters appear in a
   reference token.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 91.148% when pulling 1542c82 on grktsh:fix-escape into 066132e on gazpachoking:master.

@IdanHo
Copy link

IdanHo commented Jan 10, 2022

@gazpachoking Hey, can this be reviewed/merged? This change is required in order to parse valid json pointers as per the specification.

@gazpachoking
Copy link
Owner

Thanks!

@IdanHo
Copy link

IdanHo commented Jan 10, 2022

Thanks grktsh, and thanks gazpachoking for the merge.

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.

None yet

4 participants