OpenAPI Request Body Have Application Json Info (Edit)

Request bodies use the application/json media type to encode the request payload is a common data format

OpenAPIRequest BodiesMedia Types

Rule Definition

openapi-request-bodies-application-json-info.yaml
{"openapi-request-bodies-application-json-info":{"description":"Request bodies use the application/json media type to encode the request payload is a common data format","message":"Request Body Application JSON","given":"$.paths.*.*.requestBody.content","severity":"info","then":{"field":"application/json","function":"falsy"}}}

Back to All of the Rules