Skip to main content

request-body-description-exists

Overview

This rule belongs to the openapi-v3-docsgen-linting ruleset and states that:

In an OpenAPI specification, the requestBody object defines the body of an HTTP request that an API client sends to the server. This rule ensures that the requestBody object must contain a description property that provides a clear and concise description of the request body.

PropertyValue
EnabledYes
Maximum SeverityInformation
MessageRequestBody object description is missing.
CodeOPENAPI3DOCSGEN_L430
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Request Body
Products ImpactedDeveloper Experience Portal
Tagsdocumentation generation documentation docs openapi3 openapi semantic linting apimatic description requestBody

Suggested Fixes

  • Ensure that the RequestBody Object contains the description property.
  • Ensure that the RequestBody Object description value is not null or empty.

For More Information