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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Placeholders must be separated by exactly one single-character delimiter. |
Code | APIMATICCODEGEN_V533 |
Type | Validation |
Rule System | Semantic |
Broad Category | Webhooks |
Products Impacted | Code Generation, Developer Experience Portal |
Tags | apimatic 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.