Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageEnumeration model contains one or more fields set as an array which is not allowed.
CodeAPIMATICPRE_V515
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary 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.

For More Information