-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Update JSON Patch Functionality #15430
Update JSON Patch Functionality #15430
Conversation
… Patch operations contained in the document
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…, added support for null in add, replace, and test operations
...core-experimental/src/main/java/com/azure/core/experimental/jsonpatch/JsonPatchDocument.java
Outdated
Show resolved
Hide resolved
…g external dependencies in public API
...core-experimental/src/main/java/com/azure/core/experimental/jsonpatch/JsonPatchDocument.java
Show resolved
Hide resolved
AFAIK You have a bunch of JSON DOM interfaces in core, do we want to take those as well? |
Is this in reference to |
This PR updates JSON Patch functionality in
azure-core-experimental
.JsonPatchDocument
to accept aJsonSerializer
during construction of the class.value
parameters from JSONified strings to Object.value
parameters to allow for a JSON null to be serialized as the value to support all scenarios in JSON Patch.JsonPatchDocumentSerializer
andJsonPatchOperationSerializer
to handle serialization ofJsonPatchDocument
andJsonPatchOperation
.JsonPatchOperation
andJsonPatchOperationKind
public.getJsonPatchOperations
toJsonPatchDocument
to get a read only list of operations in the document.