predefined-default-environment
Overview
This rule belongs to the apimatic-preliminary-validation
ruleset and states that:
The default environment specified in the server configuration of the API must have a corresponding definition in the server configuration environments.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | The default environment is undefined. |
Code | APIMATICPRE_V031 |
Type | Validation |
Rule System | Semantic |
Broad Category | Server Configuration |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks validation apimatic environment server configuration api |
Suggested Fixes
- Define the environment in the server configuration environments.
- Make sure the environment name is not misspelled.