no-base-type-field-redeclaration
Overview
This rule belongs to the apimatic-preliminary-linting
ruleset and states that:
Fields/properties must not be re-declared in a model if they have already been defined in the model's base type or type hierarchy.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Field already exists in the base type. |
Code | APIMATICPRE_L101 |
Type | Linting |
Rule System | Semantic |
Broad Category | Types/Models |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks linting apimatic field property base type inheritance type custom type model complex model |
Suggested Fixes
- Remove the field from either the child model or the base model to avoid this issue.