unique-case-insensitive-schema-component-key
Overview
This rule belongs to the openapi-v3-codegen-linting ruleset and states that:
A duplicate schema component key has been detected, indicating that there are multiple schemas with the same key defined in the components section. Since keys are compared in case-insensitive manner, it is important that each schema component in the API specification has a unique key.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Duplicate schema component key found, ignoring case sensitivity. |
| Code | OPENAPI3CODEGEN_L130 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Components |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | code generation sdks openapi3 openapi semantic linting apimatic components schemas key duplicate case insensitive |
Suggested Fixes
- Remove duplicate keys.
- Assign a unique key to the conflicting schema.
- Keys are compared in a case-insensitive manner to prevent issues in Code Generation.