Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageModel has duplicate discriminator values which is not allowed.
CodeAPIMATICPRE_V507
TypeValidation
Rule SystemSemantic
Broad CategoryGlobal Types/Models
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary 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.

For More Information