Skip to main content

non-empty-server-variables-key

Overview

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

Variable key in the server object of the API must specify a non-empty non-null name.

PropertyValue
EnabledYes
Maximum SeverityError
MessageServer variable key is null or empty.
CodeOPENAPI3APIMATIC_L117
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server variable

Suggested Fixes

  • Set a variable key for server object.
  • Ensure that the server variable key is not null or empty.

For More Information