Skip to main content

optional-template-path-parameters

Overview

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

Path/template parameters used in the endpoint relative path/route should not be defined as optional parameters in the endpoint.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageBeware! Endpoint contains a template parameter declared as optional.
CodeAPIMATICPRE_L042
TypeLinting
Rule SystemSemantic
Broad CategoryEndpoints
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks linting apimatic parameter template path endpoint

Suggested Fixes

  • Set template parameter as a required endpoint parameter.

For More Information