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