required-enum-field-default-value
Overview
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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Default value of the enumeration field is missing, therefore, the enumeration field name has been set as the default value of the field. |
Code | APIMATICPOSTPROCESS_V402 |
Type | Validation |
Rule System | Semantic |
Broad Category | Global Types/Models |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | apimatic 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.