Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageEnumeration model has no fields which is not allowed.
CodeAPIMATICPRE_V512
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary 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.

For More Information