This rule belongs to the
apimatic-preliminary-validation ruleset and states that:
If a discriminator value is provided in a model, a discriminator property name must also be set somewhere in the model or its type hierarchy along with the property's definition.
|Message||Discriminator value has been set even though no discriminator field found in the custom type or its hierarchy.|
|Broad Category||Global Types/Models|
|Products Impacted||Code Generation, Developer Experience Portal, API Transformer|
- Define a discriminator and the corresponding discriminator property in the model or its type hierarchy.
- Remove the discriminator value from the model.