Skip to main content

required-server-parameter-name

Overview

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

Server parameter definition in the server configuration of the API must specify a non-empty non-null name.

PropertyValue
EnabledYes
Maximum SeverityError
MessageServer parameter name is missing or empty.
CodeOPENAPI3APIMATIC_L118
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server parameter server configuration name

Suggested Fixes

  • Set a name for each server parameter.
  • Assign a code-friendly and user-friendly name.
  • Avoid using special characters in the name.

For More Information