This rule belongs to the
openapi-v3-apimatic-linting ruleset and states that:
The schema properties for a string should define the pattern, minLength and maxLength attributes. These attributes help to define the constraints on the format and length of the string value. Please check the schema definition in the API specification for the string type and ensure that it has the pattern, minLength, and maxLength attributes defined with appropriate values.
|Message||String schema boundaries (i.e. pattern, minLength, and maxLength) are not defined.|
|Broad Category||OpenAPI Schemas|
|Products Impacted||API Transformer, Code Generation, Developer Experience Portal|
- Check that the schema definition for the string type has the pattern, minLength, and maxLength attributes defined.