single-declaration-of-discriminator
Overview
This rule belongs to the apimatic-post-processing-codegen-validation
ruleset and states that:
The discriminator must be declared once and in the base type only.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Discriminator re-declared in the child type. It has been set to null for code generation purposes. |
Code | APIMATICPOSTPROCESSCODEGEN_V102 |
Type | Validation |
Rule System | Semantic |
Broad Category | Global Types/Models |
Products Impacted | Code Generation, Developer Experience Portal |
Tags | apimatic postprocessing code generation validation discriminator inheritance type custom type model complex model |
Suggested Fixes
- Avoid re-declaring a discriminator.
- Declare discriminator once in the base type only.