pre-defined-environment-for-default-environment
Overview
This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:
The default environment specified in the server configuration extension must have a corresponding definition in the server configuration environments.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | The default environment is undefined. |
| Code | OPENAPI3APIMATIC_L101 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Servers |
| Products Impacted | API Transformer, Code Generation |
| Tags | openapi3 openapi apimatic semantic linting default environment environments server configuration server configuration environments |
Suggested Fixes
- Define the environment in the server configuration environments.
- Make sure the environment name is not misspelled.