Skip to main content

unique-parameter-definition-name

Overview

This rule belongs to the swagger-v2-standards-validation ruleset and states that:

The parameter definitions keys are patterned fields that must have unique values within the Parameter Definitions Object. The keys represent the names of the parameter definitions that can be reused across operations.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate entry found for parameter definition name in the Parameter Definitions Object.
CodeSWAGGER20STANDARDS_V351
TypeValidation
Rule SystemSemantic
Broad CategoryReusable Definitions
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation name parameter definitions parameter definitions object

Suggested Fixes

  • Remove duplicate parameter definition name entries from the Parameter Definitions Object.
  • Parameter definition key value is compared in a case-sensitive manner.

For More Information