Skip to main content

valid-placeholder-delimiter

Overview

This rule belongs to the apimatic-codegen-validation ruleset and states that:

The template string contains placeholders (for example '{$request.body}', '{$method}') that must be separated by exactly one single-character delimiter such as ':', '-', or '_'. Multiple characters, missing delimiters, or multi-character strings between placeholders aren't allowed. This ensures consistent and predictable template formatting.

PropertyValue
EnabledYes
Maximum SeverityError
MessagePlaceholders must be separated by exactly one single-character delimiter.
CodeAPIMATICCODEGEN_V533
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic placeholder delimiter template validation callback webhook message template

Suggested Fixes

  • Ensure there is exactly one delimiter character (for example ':', '-', '_') between placeholders.
  • Remove any duplicate delimiters (for example '::', '--').
  • don't include multi-character substrings or whitespace between placeholders.
  • If no delimiter is required, place the placeholders directly next to each other without extra characters.

For More Information