Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageBase type of enumeration model is set which is not allowed.
CodeAPIMATICPRE_V510
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary 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.

For More Information