at-least-one-entry-in-request-body-content
Overview
This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:
The content property is required for a request body object. Hence, it must not be missing or empty and it must contain at least one entry.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | The content of the request body is missing or empty. |
| Code | OPENAPI3APIMATIC_L370 |
| Type | Linting |
| Rule System | Semantic |
| Broad Category | OpenAPI Request Body |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | openapi3 openapi apimatic semantic linting request body content empty missing |
Suggested Fixes
- Ensure that request body content is not missing or empty.
- Ensure that the request body object includes at least one content entry.