Skip to main content

unique-discriminator-mapping-key

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

The discriminator mapping keys defined in the discriminator object must be unique.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate discriminator mapping key found.
CodeOPENAPI3APIMATIC_L803
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Discriminators
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting discriminator mapping key

Suggested Fixes

  • Remove duplicate discriminator mapping key definitions.
  • Make sure that all discriminator mapping keys are assigned unique names.

For More Information