Skip to main content

discriminator-property-pointer-references-string-type

Overview

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

The property that propertyPointer references MUST be of string type to allow proper event matching and discrimination logic for webhooks and callbacks.

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

Suggested Fixes

  • Change the referenced property type to string in the request body schema.
  • Update the propertyPointer to reference a string-type field.
  • Ensure event type values are represented as strings for consistent matching.

For More Information