Skip to main content

server-variable-exists-in-server-url-template

Overview

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

Server variables defined in the server's variables object must be referenced in the server URL.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageUnused server variable found.
CodeOPENAPI3APIMATIC_L115
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Servers
Products ImpactedAPI Transformer, Code Generation
Tagsopenapi3 openapi apimatic semantic linting server variable url template

Suggested Fixes

  • Reference all server variables in the server URL.

For More Information