unique-discriminator-value
Overview
This rule belongs to the apimatic-preliminary-validation
ruleset and states that:
A base type model and its children types must all have unique discriminator values.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Model has duplicate discriminator values which is not allowed. |
Code | APIMATICPRE_V507 |
Type | Validation |
Rule System | Semantic |
Broad Category | Global Types/Models |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks validation apimatic discriminator value discriminator base type inheritance type custom type model complex model |
Suggested Fixes
- Make sure all types in the hierachy have unique discriminator values.