Skip to main content

unique-server-parameters

Overview

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

The server parameters defined in the server configuration of the API must have unique names.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate definitions of server parameter found in the server configuration.
CodeOPENAPI3APIMATIC_L114
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server parameter

Suggested Fixes

  • Remove duplicate server variables.
  • Rename server variables to enure the uniqueness of variable names.
  • Make sure all server variables are assigned unique names.

For More Information