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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Discriminator propertyPointer references a non-string property. |
| Code | APIMATICCODEGEN_V523 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Webhooks |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | apimatic 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.