Skip to main content

pre-defined-server-for-default-server

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

The default server specified in the server configuration of the API must have a corresponding definition in all of the server configuration environment servers.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe default server is undefined.
CodeOPENAPI3APIMATIC_L102
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting default server server configuration server configuration servers

Suggested Fixes

  • Define the server in the server configuration servers.
  • Make sure the server name is not misspelled.

For More Information