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

Json Patch (RFC 6902) formatter should escape the property name #371

Open
nathangobinet opened this issue Jul 30, 2024 · 0 comments · May be fixed by #372
Open

Json Patch (RFC 6902) formatter should escape the property name #371

nathangobinet opened this issue Jul 30, 2024 · 0 comments · May be fixed by #372

Comments

@nathangobinet
Copy link

Migrating from fast-json-patch to jsondiffpatch I encouter an error using a property name that include a '/' character with the jsonpatch formatter.

The following object property name:

tree/item

should be formatted as

tree~1item

and is formatted as :

tree/item

causing wrong jsonpatch operation path.

See RFC 6902 for details : https://datatracker.ietf.org/doc/html/rfc6902#appendix-A.14

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 a pull request may close this issue.

1 participant