Skip to main content

unique-operation-parameter

Overview

This rule belongs to the openapi-v3-standards-validation ruleset and states that:

The parameters list provided using the parameters property in the Operation Object must not include any duplicate parameter definitions. A unique parameter is defined by a combination of its name and location.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate entry found for parameter in the current Operation Object parameters.
CodeOPENAPI3STANDARDS_V052
TypeValidation
Rule SystemSemantic
Broad CategoryOperations
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic validation parameters parameter name location operation

Suggested Fixes

  • Remove duplicate entry of a parameter from the parameters list.
  • If name and location of a parameter matches with that of some other parameter entry, remove one of such entries.
  • Parameter names are compared in a case-sensitive manner.

For More Information