Skip to main content



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

All enumeration model fields must have a default value set, that represents one of the allowed values for the enumeration entity. If the default value is missing, the enumeration field name will be assigned as the default value of that field.

Maximum SeverityWarning
MessageDefault value of the enumeration field is missing, therefore, the enumeration field name has been set as the default value of the field.
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagsapimatic postprocessing validation default value enumeration type custom type model complex model

Suggested Fixes

  • Set default values of all enumeration model fields to avoid this issue.