Skip to main content

atleast-one-template-parameter-reference

Overview

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

If a template parameter is defined in an endpoint, it must also be part of one or more path segments of the endpoint's relative path/route.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageEndpoint has an unused template parameter.
CodeAPIMATICPRE_L043
TypeLinting
Rule SystemSemantic
Broad CategoryEndpoints
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks linting apimatic parameter template path endpoint

Suggested Fixes

  • Did you forget to use the template parameter in the endpoint route?
  • Make sure that the parameter is used in the endpoint route and is surrounded by curly braces e.g. /message/{id}.
  • Remove the template parameter definition from endpoint parameters.

For More Information