schema-non-negative-max-properties
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
The numeric validation keyword maxProperties
must have a non-negative integer value i.e. the value must be greater than or equal to 0.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Value of property maxProperties is less than 0. |
Code | SWAGGER20STANDARDS_V309 |
Type | Validation |
Rule System | Semantic |
Broad Category | Schemas |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation max properties number integer object json schema validation json schema |
Suggested Fixes
- Ensure that the value for the validation keyword is a valid integer.
- Ensure that the value is not less than 0 i.e. a negative value.