unique-server
Overview
This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:
The servers defined for an environment in the server configuration of the API must have unique names.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Duplicate definitions of server found in the environment. |
| Code | OPENAPI3APIMATIC_L106 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Servers |
| Products Impacted | API Transformer, Code Generation |
| Tags | openapi3 openapi apimatic semantic linting server environment |
Suggested Fixes
- Remove duplicate server definitions.
- Make sure all servers are assigned unique names.