no-schema-type-mismatch
Prevent object and array schemas from using properties that contradict their declared type.
nullable-type-sibling
Require an explicit schema type when OpenAPI 3.0 nullable is used.
no-enum-type-mismatch
Require every enum value to match its schema's declared type.
no-required-schema-properties-undefined
Ensure every required schema property is defined.
no-mixed-number-range-constraints
Prevent numeric schemas from declaring inclusive and exclusive bounds together.
additional-properties-false
Discourage object schemas that explicitly allow arbitrary properties.
no-unconstrained-additional-properties
Require a property-count limit when object schemas allow additional properties.
invalid-additional-properties-usage
Allow additionalProperties only on object schemas.
integer-schema-must-define-minimum
Require numeric component schemas to define a lower bound.
integer-schema-must-define-maximum
Require numeric component schemas to define an upper bound.
integer-format-defined
Require integer schemas to use a supported integer format.
number-format-defined
Require number schemas to use a supported numeric format.
string-schema-format-required
Require formats on string component properties and parameters unless they use enums.
invalid-min-length
Reject negative minimum string lengths.
invalid-max-length
Ensure maximum string length is not smaller than minimum length.
length-exceeds-limit
Warn when string length constraints exceed Specmatic's practical 4 MB generation limit.
array-max-items
Require array schemas to declare a maximum item count.
string-max-length-or-enum
Require string schemas to be bounded by maxLength, enum, or const.
invalid-numeric-bounds
Ensure a numeric schema's upper bound is not below its lower bound.
pattern-length-incompatible
Keep a string pattern compatible with its declared length range.
invalid-regex-format
Detect invalid regular expressions in schema patterns.
allof-contradictory-constraints
Detect required properties with mutually exclusive values across allOf branches.
impossible-object-cardinality
Ensure a closed object declares enough properties to meet minProperties.
schema-unclear
Detect schema types that OpenAPI does not recognize.
id-format
Require schema properties named id to use the string type.
error-schema-code
Require error response schemas to define a code property.
error-schema-message
Require error response schemas to define a message property.
schema-code-type-string
Require error response code properties to be strings.
schema-message-type-string
Require error response message properties to be strings.
json-property-names
Use lower camelCase for direct properties of component schemas.
health-schema-status
Require the health endpoint's success schema to define status.
health-schema-checks
Require the health-info endpoint's success schema to define checks.
common-date-fields-semantics
Give date-like schema properties a string date format.
duplicate-oneof-discriminator
Keep discriminator values unique across oneOf branches.
enum-no-matching-values
Ensure an enum contains a value accepted by its schema.
enum-nullability-coercion
Keep enum null values aligned with schema nullability.
oas30-enum-null-coercion
Detect enum values incompatible with their OpenAPI 3.0 schema.
enum-value-schema-mismatch
Identify individual enum values that violate their schema.
no-duplicate-enum-values
Remove repeated values from schema enums.
integer-bounds-required
Require both lower and upper bounds on integer schemas.
missing-schema-fallback
Prevent implicit empty schemas in media types, headers, and arrays.
required-string-property-missing-min-length
Give required string properties an explicit minimum length.
health-schema-status-in-required
Require status in the health endpoint's response schema.
health-info-schema-status-in-required
Require status in the health-info endpoint's response schema.
health-schema-checks-in-required
Require checks in the health-info endpoint's response schema.
spec-discriminator-defaultMapping
Validate OpenAPI 3.2 discriminator default mappings.