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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Two or more servers in an environment found to have same URL. |
Code | OPENAPI3APIMATIC_L109 |
Type | Linting |
Rule System | Semantic |
Broad Category | OpenAPI Servers |
Products Impacted | API Transformer, Code Generation |
Tags | openapi3 openapi apimatic semantic linting server url environment |
Suggested Fixes
- Remove duplicate server definitions.
- Make sure all servers are assigned unique names.