Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageEnumeration model field has a conflicting default value.
CodeAPIMATICPRE_V513
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary 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.

For More Information