Skip to main content

discriminator-property-pointer-points-to-valid-property

Overview

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

The property that propertyPointer references MUST exist in the parent request body schema to enable proper event type discrimination for webhooks and callbacks.

PropertyValue
EnabledYes
Maximum SeverityError
MessageDiscriminator propertyPointer references a non-existent property.
CodeAPIMATICCODEGEN_V522
TypeValidation
Rule SystemSemantic
Broad CategoryWebhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsapimatic code generation codegen sdks portal docs validation apimatic webhook callback discriminator propertyPointer schema validation

Suggested Fixes

  • Verify that the property referenced by propertyPointer exists in the request body schema.
  • Check for typos in the propertyPointer path.
  • Ensure the request body schema includes the field needed for event discrimination.

For More Information