Skip to main content

maximum-limit-greater-or-equal-minimum-limit

Overview

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

The value of maximum limit set by a numeric type restriction attribute cannot be less than the specified minimum limit. In other words, the minimum value set by a numeric type restriction attribute cannot exceed the specified maximum limit

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageMaximum value of current numeric type restriction attribute is less than the specified minimum value, which is not allowed.
CodeAPIMATICPRE_L104
TypeLinting
Rule SystemSemantic
Broad CategoryTypes/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks linting apimatic maximum restriction attribute type number integer

Suggested Fixes

  • Ensure that the attribute value is greater than the minimum limit set.
  • Ensure that the attribute value is an integer.
  • Ensure that the attribute value is not less than zero.

For More Information