Openapi Response Post 201 Schema Components Warn (Edit)

Warn GET response 201 schema should use components.

Rule Definition

openapi-response-post-201-schema-components-warn.yaml
{ "openapi-response-post-201-schema-components-warn": {"description":"Warn GET response 201 schema should use components.","message":"POST Response 201 Schema Components","given":"$.paths.*.post.responses.201.content.*.schema[?(@.allOf && @.anyOf && @.oneOf)]","severity":"warn","then":{"field":"properties","function":"truthy"}} }

Back to All of the Rules