Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate parameter name found in the path item object, ignoring case sensitivity.
CodeOPENAPI3CODEGEN_L172
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Path Items
Products ImpactedCode Generation, Developer Experience Portal
Tagscode 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.

For More Information