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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Discriminator section exists but propertyPointer doesn't exist or the field is missing. |
| Code | APIMATICCODEGEN_V521 |
| 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 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.