Openapi Response Post 201 Status Code Error (Edit)

Require 201 status code for POST responses.

Rule Definition

openapi-response-post-201-status-code-error.yaml
{ "openapi-response-post-201-status-code-error": {"description":"Require 201 status code for POST responses.","message":"POST 201 Status Code","severity":"error","given":"$.paths[*].post.responses","then":{"field":"201","function":"truthy"}} }

Back to All of the Rules