unique-case-insensitive-path-item-parameter-name
Overview
This rule belongs to the openapi-v3-codegen-linting
ruleset and states that:
A duplicate parameter name has been detected, indicating that there are multiple parameters with the same name defined in the path items object. Since parameter names are compared in a case-insensitive manner, it is important that each parameter name in a path item object has a unique name.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Duplicate parameter name found in the path item object, ignoring case sensitivity. |
Code | OPENAPI3CODEGEN_L172 |
Type | Linting |
Rule System | Semantic |
Broad Category | OpenAPI Path Items |
Products Impacted | Code Generation, Developer Experience Portal |
Tags | code generation sdks openapi3 openapi semantic linting apimatic path parameter parameters unique duplicate name case-insensitive |
Suggested Fixes
- Remove parameters with duplicate name.
- Update parameter names to avoid conflict.
- Names are compared in a case-insensitive manner to prevent issues during Code Generation.