OpenAPI Request Bodies PATCH Merge Patch (Edit)

PATCH operations should use application/merge-patch+json content type as defined in RFC 7396, providing a standardized approach for partial updates to resources.

OpenAPIRequest BodiesPATCHContent Type

Rule Definition

openapi-request-bodies-patch-merge-patch-info.yaml
{"openapi-request-bodies-patch-merge-patch-info":{"description":"PATCH operations should use application/merge-patch+json content type as defined in RFC 7396, providing a standardized approach for partial updates to resources.","message":"PATCH operations SHOULD use application/merge-patch+json content type.","given":"$.paths[*].patch.requestBody.content","severity":"info","then":{"field":"application/merge-patch+json","function":"truthy"}}}

Back to All of the Rules