Skip to main content

unique-parameter-name

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

Operation level parameter names and requestBody schema property names should be unique.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate parameter names found.
CodeOPENAPI3APIMATIC_L331
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Parameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting parameter name unique

Suggested Fixes

  • Make sure all parameters have unique names.
  • If requestBody object exists, make sure no parameter name is equal to any schema property key in the requestBody.

For More Information