required-request-body-content
Overview
This rule belongs to the openapi-v3-standards-validation
ruleset and states that:
The Request Body Object must define the request body content using the content
property.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required property content in Request Body Object is missing. |
Code | OPENAPI3STANDARDS_V120 |
Type | Validation |
Rule System | Semantic |
Broad Category | Request Body |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | openapi3 openapi standards semantic validation content body request |
Suggested Fixes
- Add missing
content
property in the Request Body object. - Make sure that the
content
property is not set to null.
For More Information
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#request-body-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#request-body-object
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-specification
- https://docs.apimatic.io/rulesets/overview/