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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Duplicate discriminator mapping key found. |
| Code | OPENAPI3APIMATIC_L803 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Discriminators |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | openapi3 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.