Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageCallback name contains invalid characters or format.
CodeAPIMATICCODEGEN_V543
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic 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').

For More Information