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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Request body content is missing for discriminator property pointer resolution. |
| Code | OPENAPI3APIMATIC_L1031 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Webhooks |
| Products Impacted | Code Generation, Developer Experience Portal |
| Tags | openapi3 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
- https://docs.apimatic.io/specification-extensions/swagger-codegen-extensions/#webhook-group-extension
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#fixed-fields
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md
- https://docs.apimatic.io/rulesets/overview/