Skip to main content

valid-number-type-restriction-attribute

Overview

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

The value of a numeric type restriction attribute must be an integer greater than, or equal to zero.

PropertyValue
EnabledYes
SeverityWarning
MessageValue of numeric type restriction attribute is invalid.
CodeAPIMATICPRE_L103
TypeLinting
Rule SystemSemantic
Broad CategoryTypes/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks linting apimatic restriction attribute type number integer

Suggested Fixes

  • Ensure that the attribute value is an integer.
  • Ensure that the attribute value is not less than zero.

For More Information