-
Notifications
You must be signed in to change notification settings - Fork 0
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
Removal of the root #17
Comments
I disagree with the solution. I think It could be reasonable to allow the But since we most likely want to be compatible, I think |
What matters most is that the undefined behavior gets specified. That being said, if we go with your solution, we lose the functional equivalence of |
The patch
{ "op": "remove", "path": "" }
is currently undefined.I believe it should have the same result as
{ "op": "add", "path": "", "value": null }
. As a side-result, it would also validate the definition of{ "op": "replace", "path": "", "value": null }
, which states:In any case, it would benefit from being specified. Some implementations currently throw, and that is unfortunate, as it breaks the specification as quoted above..
The text was updated successfully, but these errors were encountered: