Skip to main content

callback-discriminator-property-pointer-missing-request-body

Overview

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

The property pointer in the event discriminator references a field in the request body, but the callback operation does not have a request body defined. A request body is required for the discriminator to function.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe event discriminator property pointer requires a request body but none is defined.
CodeOPENAPI3APIMATIC_L509
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Callbacks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting callback discriminator property pointer request body

Suggested Fixes

  • Define a request body for the callback operation.
  • Ensure the request body contains the property referenced by the discriminator's property pointer.

For More Information