callback-valid-name
Overview
This rule belongs to the apimatic-codegen-validation ruleset and states that:
Callback names must follow valid naming conventions. Names should contain only alphanumeric characters, underscores, and hyphens, and must not start with numbers or special characters.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Callback name contains invalid characters or format. |
| Code | APIMATICCODEGEN_V543 |
| 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 callback naming convention identifier |
Suggested Fixes
- Use only letters, numbers, underscores, and hyphens in callback names.
- Start callback names with a letter or underscore, not a number.
- Avoid spaces and special characters like @, #, $, %, etc.
- Use descriptive names that clearly identify the callback purpose (for example 'orderCompletionNotification').