Skip to main content

unique-server-variables-key

Overview

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

The server variables key defined in the server of the API must have unique names.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate server variables key found in the server.
CodeOPENAPI3APIMATIC_L113
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server variable

Suggested Fixes

  • Remove duplicate server variable key definitions.
  • Make sure all server variables key are assigned unique names.

For More Information