Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe default environment is undefined.
CodeAPIMATICPRE_V031
TypeValidation
Rule SystemSemantic
Broad CategoryServer Configuration
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary 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.

For More Information