Skip to main content

webhook-discriminator-property-pointer-missing-request-body-content

Overview

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

The webhook discriminator property pointer cannot be resolved because the request body does not have any content defined. Ensure the request body contains valid media type content definitions.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequest body content is missing for discriminator property pointer resolution.
CodeOPENAPI3APIMATIC_L1031
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Webhooks
Products ImpactedCode Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting webhook discriminator request-body content

Suggested Fixes

  • Define at least one media type content entry in the webhook operation's request body.
  • Ensure the request body content contains valid schema definitions for the discriminator to resolve against.

For More Information