Openapi Schema Properties Type String Pattern Warn (Edit)

Warn schema property type string pattern.

Rule Definition

openapi-schema-properties-type-string-pattern-warn.yaml
{ "openapi-schema-properties-type-string-pattern-warn": {"description":"Warn schema property type string pattern.","message":"Schema Property Type String Pattern","given":["$.components.schemas.*.properties.[?(@.type=='string')]"],"severity":"warn","then":{"field":"pattern","function":"truthy"}} }

Back to All of the Rules