unique-environment
Overview
This rule belongs to the apimatic-preliminary-validation ruleset and states that:
The environments defined in the server configuration of the API must have unique names.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Duplicate definitions of environment found. |
| Code | APIMATICPRE_V032 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Server Configuration |
| Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
| Tags | preliminary checks validation apimatic name environment server configuration api |
Suggested Fixes
- Remove duplicate environment definitions.
- Make sure all environments are assigned unique names.