Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired property content in Request Body Object is missing.
CodeOPENAPI3STANDARDS_V120
TypeValidation
Rule SystemSemantic
Broad CategoryRequest Body
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 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