Skip to main content

discriminator-property-pointer-required

Overview

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

When a discriminator section exists in webhook or callback configuration, the propertyPointer field MUST be present and non-empty to enable event type discrimination.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDiscriminator section exists but propertyPointer doesn't exist or the field is missing.
CodeAPIMATICCODEGEN_V521
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic webhook callback discriminator propertyPointer event type

Suggested Fixes

  • Add a propertyPointer field to the discriminator section.
  • Ensure the propertyPointer field isn't empty or null.
  • The propertyPointer should reference a field in the request body that contains the event type information.

For More Information