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.
| Property | Value |
|---|---|
| Enabled | Yes |
| Maximum Severity | Error |
| Message | Required schema property for body parameters in Parameter Object is missing. |
| Code | SWAGGER20STANDARDS_V100 |
| Type | Validation |
| Rule System | Semantic |
| Broad Category | Parameters |
| Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
| Tags | swagger2 swagger standards semantic validation schema parameter body |
Suggested Fixes
- Add missing
schemaproperty in the Parameter object. - Make sure that the
schemaproperty is a valid object and not set as null.