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