Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe default environment is undefined.
CodeOPENAPI3APIMATIC_L101
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 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.

For More Information