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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Exclusive maximum has been defined but maximum is missing for schema object. |
| Code | SWAGGER20STANDARDS_V303 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Schemas |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | swagger2 swagger standards semantic validation schema exclusive maximum maximum |
Suggested Fixes
- Ensure that the
maximumproperty exists and is a valid numeric value.