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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Warning |
| Message | Value of numeric type restriction attribute is invalid. |
| Code | APIMATICPRE_L103 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | Types/Models |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary 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.