Skip to main content

unique-server-url

Overview

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

There are two or more server objects defined in the same environment that have the same URL. This can cause confusion for clients that are trying to connect to the API and can result in unexpected behavior. Therefore, it is important to ensure that each server in the environment has a unique URL.

PropertyValue
EnabledYes
Maximum SeverityError
MessageTwo or more servers in an environment found to have same URL.
CodeOPENAPI3APIMATIC_L109
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server url environment

Suggested Fixes

  • Remove duplicate server definitions.
  • Make sure all servers are assigned unique names.

For More Information