Skip to main content

unique-environment

Overview

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

The environments defined in the server configuration of the API must have unique names.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDuplicate definitions of environment found.
CodeOPENAPI3APIMATIC_L103
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting environment server configuration

Suggested Fixes

  • Remove duplicate environment definitions.
  • Make sure all environments are assigned unique names.

For More Information