required-default-value-for-constant-entity
Overview
This rule belongs to the apimatic-preliminary-validation ruleset and states that:
Entities set as constants must have a non-null and non-empty default value set.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Missing default value for constant entity. |
| Code | APIMATICPRE_V404 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Types |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary checks validation apimatic default value sample value constant |
Suggested Fixes
- Set a default value for the entity.
- Make the entity non-constant.