valid-numeric-enum-default-value
Overview
This rule belongs to the apimatic-preliminary-validation
ruleset and states that:
The default value of a numeric enumeration model must be a valid number/integer.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | The default value of the numeric enumeration model is not valid. |
Code | APIMATICPRE_V517 |
Type | Validation |
Rule System | Semantic |
Broad Category | Global Types/Models |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks validation apimatic default value enumeration type field custom type model complex model |
Suggested Fixes
- Make sure that all default values of the enumeration model are valid integers.
- Make sure that all default values of the enumeration model are set and are non-empty and non-null.