OpenAPI Response Post 201 Media Type Examples Error (Edit)

POST 201 success HTTP status codes have examples to show one or many examples of responses for different types of API requests

OpenAPIResponsesPOST2xxMedia Types

Rule Definition

openapi-response-post-201-media-type-examples-error.yaml
{"openapi-response-post-201-media-type-examples-error":{"description":"POST 201 success HTTP status codes have examples to show one or many examples of responses for different types of API requests","message":"POST 201 Responses MUST Have Examples","severity":"error","given":"$.paths.*.post.responses.201.content.application/json","then":{"field":"examples","function":"truthy"}}}

Back to All of the Rules