Skip to main content

valid-numeric-enum-default-value

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

The default value of a numeric enumeration model must be a valid number/integer.

PropertyValue
EnabledYes
SeverityError
MessageThe default value of the numeric enumeration model is not valid.
CodeAPIMATICPRE_V517
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic default value enumeration type field custom type model complex model

Suggested Fixes

  • Make sure that all default values of the enumeration model are valid integers.
  • Make sure that all default values of the enumeration model are set and are non-empty and non-null.

For More Information