no-enum-base-type
Overview
This rule belongs to the apimatic-preliminary-validation ruleset and states that:
Enumeration types must not have a base type set.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Base type of enumeration model is set which is not allowed. |
| Code | APIMATICPRE_V510 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Global Types/Models |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary checks validation apimatic base type inheritance enumeration type custom type model complex model |
Suggested Fixes
- Enumeration models cannot have base types. Only structure/exception type models can.
- Set the base type to null for the concerned enumeration model.