Skip to content

Update JSON Patch docs for .NET 10 #36419

@mikekistler

Description

@mikekistler

Description

There are a few fixes and improvements we should make to the JSON Patch documentation for .NET 10.

In the "Enable JSON Patch support with System.Text.Json" section

  • Remove "--prerelease" from the dotnet add command to add Microsoft.AspNetCore.JsonPatch.SystemTextJson

  • References to "T" should be "TModel"

Image

The "Action method code applying JSON Patch" section

  • Replace this with a section that describes the Patch method in the CustomerApi.cs file (the Minimal APIs PATCH endpoint)
    • Need to update the section title
    • Note the example error response should be updated

Not sure we need this section: Apply a JSON Patch document to an object. Can we remove it?

  • Or maybe this is an opportunity to use a polyglot notebook?

Not sure we need this section: Example: Apply a JsonPatchDocument with error handling. Can we remove it?

In the "Get the code" section:

Under "Additional resources"

Page URL

https://learn.microsoft.com/en-us/aspnet/core/web-api/jsonpatch?view=aspnetcore-10.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/web-api/jsonpatch.md

Document ID

6a88d237-1a03-b865-e3c5-20ceedef2a1f

Platform Id

54f6475a-b72c-2ccc-3ab8-5326d9d05c50

Article author

@wadepickett

Metadata

  • ID: 593f528c-61b9-7021-335d-c1c0ec1814d1
  • PlatformId: 54f6475a-b72c-2ccc-3ab8-5326d9d05c50
  • Service: aspnet-core
  • Sub-service: web-api

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions