atleast-one-enum-field
Overview
This rule belongs to the apimatic-preliminary-validation
ruleset and states that:
Enumeration types must contain at least one value field.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Enumeration model has no fields which is not allowed. |
Code | APIMATICPRE_V512 |
Type | Validation |
Rule System | Semantic |
Broad Category | Global Types/Models |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks validation apimatic enumeration field property type custom type model complex model |
Suggested Fixes
- Define at least one or more value fields for the enumeration model under consideration.
- Remove the model if it has no references.