unique-enum-fields
Overview
This rule belongs to the apimatic-preliminary-validation
ruleset and states that:
All enumeration model fields must have unique default values.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Enumeration model field has a conflicting default value. |
Code | APIMATICPRE_V513 |
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 field property type custom type model complex model |
Suggested Fixes
- Remove fields with conflicting default values.
- Change default value of conflicting fields to fix this issue.