Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageImplementation type of the model and its base type do not match.
CodeAPIMATICPRE_V502
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary 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.

For More Information