Skip to main content

non-zero-multiple-of-restriction-attribute

Overview

This rule belongs to the apimatic-preliminary-linting ruleset and states that:

The value of the 'multipleOf' numeric type restriction attribute must be a number strictly greater than zero.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageValue of 'multipleOf' numeric type restriction attribute cannot be set as 0.
CodeAPIMATICPRE_L108
TypeLinting
Rule SystemSemantic
Broad CategoryTypes/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks linting apimatic multiple of restriction attribute type number

Suggested Fixes

  • Ensure that the attribute value is a number.
  • Ensure that the attribute value is not less than zero.
  • Ensure that the attribute value is not equal to zero.

For More Information