Skip to main content

callback-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 callback 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 callback group.
CodeOPENAPI3APIMATIC_L505
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Callbacks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting callback 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