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

Update JSON Patch Functionality #15430

Merged

Conversation

alzimmermsft
Copy link
Member

@alzimmermsft alzimmermsft commented Sep 21, 2020

This PR updates JSON Patch functionality in azure-core-experimental.

  • Added support for JsonPatchDocument to accept a JsonSerializer during construction of the class.
  • Changed value parameters from JSONified strings to Object.
  • Changed handling of value parameters to allow for a JSON null to be serialized as the value to support all scenarios in JSON Patch.
  • Added JsonPatchDocumentSerializer and JsonPatchOperationSerializer to handle serialization of JsonPatchDocument and JsonPatchOperation.
  • Made JsonPatchOperation and JsonPatchOperationKind public.
  • Added getJsonPatchOperations to JsonPatchDocument to get a read only list of operations in the document.

@alzimmermsft alzimmermsft added Client This issue points to a problem in the data-plane of the library. Azure.Core azure-core labels Sep 21, 2020
@alzimmermsft alzimmermsft self-assigned this Sep 21, 2020
srnagar
srnagar previously approved these changes Sep 22, 2020
Copy link
Member

@srnagar srnagar left a comment

Choose a reason for hiding this comment

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

LGTM!

@alzimmermsft alzimmermsft dismissed srnagar’s stale review September 23, 2020 00:17

Changes made need new review

@alzimmermsft alzimmermsft changed the title Release azure-core-experimental 1.0.0-beta.5 Update JSON Patch Functionality Sep 23, 2020
@pakrym
Copy link
Contributor

pakrym commented Sep 23, 2020

AFAIK You have a bunch of JSON DOM interfaces in core, do we want to take those as well?

@alzimmermsft
Copy link
Member Author

AFAIK You have a bunch of JSON DOM interfaces in core, do we want to take those as well?

Is this in reference to JsonObject and the other interfaces? If so, I won't be eagerly consuming those as we haven't had a great use case for moving those into azure-core any time soon.

@alzimmermsft alzimmermsft merged commit 27fdfd6 into Azure:master Sep 23, 2020
@alzimmermsft alzimmermsft deleted the AzCore_ReleaseJsonPatchInExperimental branch September 23, 2020 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core azure-core Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants