enum-field-cannot-be-array
Overview
This rule belongs to the apimatic-preliminary-validation ruleset and states that:
An enumeration model field cannot be set as an array.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Enumeration model contains one or more fields set as an array which is not allowed. |
| Code | APIMATICPRE_V515 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Global Types/Models |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary checks validation apimatic array enumeration field property type custom type model complex model |
Suggested Fixes
- Disable the "IsArray" flag for all enumeration model fields.
- Remove the enumeration fields which are set as an array.