Skip to main content

schema-maximum-exists-for-exclusive-maximum

Overview

This rule belongs to the swagger-v2-standards-validation ruleset and states that:

The schemaobject must have themaximumproperty defined if theexclusiveMaximum` property has been defined.

PropertyValue
EnabledYes
Maximum SeverityError
MessageExclusive maximum has been defined but maximum is missing for schema object.
CodeSWAGGER20STANDARDS_V303
TypeValidation
Rule SystemSemantic
Broad CategorySchemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation schema exclusive maximum maximum

Suggested Fixes

  • Ensure that the maximum property exists and is a valid numeric value.

For More Information