same-model-and-base-model-implementation-type
Overview
This rule belongs to the apimatic-preliminary-validation
ruleset and states that:
The implementation type of the model and that of its base type must be the same. This means that exception models cannot have structure type models as base types nor can structure type models have exception type models as base types.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Implementation type of the model and its base type do not match. |
Code | APIMATICPRE_V502 |
Type | Validation |
Rule System | Semantic |
Broad Category | Global Types/Models |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks validation apimatic base type inheritance type custom type model complex model |
Suggested Fixes
- Make sure that all base types of the model have the same implementation type as the model's own.