Skip to main content

required-body-parameter-schema

Overview

This rule belongs to the swagger-v2-standards-validation ruleset and states that:

The Parameter Object must specify a schema for body parameters using the schema property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired schema property for body parameters in Parameter Object is missing.
CodeSWAGGER20STANDARDS_V100
TypeValidation
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation schema parameter body

Suggested Fixes

  • Add missing schema property in the Parameter object.
  • Make sure that the schema property is a valid object and not set as null.

For More Information