Skip to main content

webhook-discriminator-property-pointer-required

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

When an event discriminator is defined for a webhook group, the propertyPointer field must be specified. This pointer identifies the field in the request body used to differentiate between event types.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe event discriminator property pointer is required for the webhook group.
CodeOPENAPI3APIMATIC_L1035
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Webhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting webhook discriminator property pointer required

Suggested Fixes

  • Specify the propertyPointer field in the event discriminator definition.
  • The property pointer should reference a field in the request body that identifies the event type.

For More Information