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