model-atleast-one-field
Overview
This rule belongs to the apimatic-codegen-validation ruleset and states that:
A structure/exception model must consist of at least one field/property declaration.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Warning |
| Message | Model has no fields which is not allowed. |
| Code | APIMATICCODEGEN_V134 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Global Types/Models |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | apimatic code generation codegen sdks portal docs validation apimatic field property type custom type model complex model |
Suggested Fixes
- Add one or more fields for the model under consideration.
- Remove the model if it has no references in the API specification.