Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe content of the request body is missing or empty.
CodeOPENAPI3APIMATIC_L370
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Request Body
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 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.

For More Information