OpenAPI Schema Properties Type Defined (Edit)

All schema properties must have a type explicitly defined to ensure proper validation, code generation, and documentation. Properties without types are ambiguous and error-prone.

OpenAPISchemaPropertiesTypes

Rule Definition

openapi-schema-properties-type-defined-error.yaml
{"openapi-schema-properties-type-defined-error":{"description":"All schema properties must have a type explicitly defined to ensure proper validation, code generation, and documentation. Properties without types are ambiguous and error-prone.","message":"Schema properties MUST have a type defined.","given":"$..properties.*","severity":"error","then":{"field":"type","function":"truthy"}}}

Back to All of the Rules