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
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Maximum value of current numeric type restriction attribute is less than the specified minimum value, which is not allowed. |
Code | APIMATICPRE_L104 |
Type | Linting |
Rule System | Semantic |
Broad Category | Types/Models |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary 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.