Skip to main content

no-trailing-leading-spaces-in-server-variable-name

Overview

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

The name or the key of the server variable should not contain any leading or trailing white-space characters.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageLeading or trailing white-space character found in server variable name/key.
CodeOPENAPI3APIMATICSYNTAX_L103
TypeLinting
Rule SystemSyntax
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi syntax linting apimatic server variable name leading trailing whitespace character

Suggested Fixes

  • Remove all leading or trailing white-space characters such as spaces, tabs, or line breaks from server variable name/key.

For More Information