Skip to main content

schema-multiple-of-greater-than-zero

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

The numeric validation keyword multipleOf must have a value that is strictly greater than zero (0).

PropertyValue
EnabledYes
Maximum SeverityError
MessageValue of property multipleOf is not greater than 0.
CodeOPENAPI3STANDARDS_V326
TypeValidation
Rule SystemSemantic
Broad CategorySchemas
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation multiple of number json schema validation json 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.

For More Information