You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSON Patch request body should use content-type application/json-patch+json #61956
A patch operation that accepts a JsonPatchDocument<T> that was added as part of the JSON Patch with System.Text.Json feature in .NET 10 preview 4 is shown in the generated OpenAPI document as accepting the media type "application/json". According to RFC 6902, the media type should be "application/json-patch+json".
Expected Behavior
A patch operation that accepts a JsonPatchDocument<T> should have a request body with media type "application/json-patch+json" in the generated OpenAPI document.
Steps To Reproduce
A minimal repro for this problem is in the "json-patch-media-type" directory of this repo:
Activity
mikekistler commentedon Jul 29, 2025
@captainsafia If we choose not to fix this in .NET 10, will it be considered a breaking change if we fix it in .NET 11 or later?
Update media type for JSON Patch
martincostello commentedon Jul 29, 2025
I picked up where Copilot got to, fixed it up and opened #62988 to make this change (correctly I hope...).
Update media type for JSON Patch (#62988)