Skip to main content

callback-missing-request-body

Overview

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

Callbacks typically require a request body parameter to send event data to external services. A missing request body may indicate incomplete callback configuration or prevent proper event notification.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageCallback removed as it doesn't have a request body parameter.
CodeAPIMATICCODEGEN_V538
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic callback request body parameter configuration event data

Suggested Fixes

  • Add a request body parameter to the callback to send event data.
  • Ensure the request body parameter has ParamFormat.Body format.
  • Define an appropriate schema type for the callback payload.
  • If the callback intentionally has no body, this warning can be ignored.

For More Information