unique-schema-component-key
Overview
This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:
Each schema component must have a unique name, duplicate names are not allowed as they can lead to confusion and potential conflicts.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Duplicate schema component keys found. |
| Code | OPENAPI3APIMATIC_L152 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Components |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi apimatic semantic linting component schema key |
Suggested Fixes
- Ensure that all schema component keys are unique.
- If there are duplicate schema definitions in the components object, remove them.