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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Discriminator propertyPointer references a non-existent property. |
| Code | APIMATICCODEGEN_V522 |
| 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 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.