only-one-body-parameter-in-path-item-parameters
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
The parameters list provided using the 'parameters' property in the Path Item Object must not include more than one 'body' parameter definitions. If multiple body parameters are found, their location will be automatically updated to formData
during import/transformations in APIMatic.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | More than one 'body' parameter found in path item parameters list. |
Code | SWAGGER20STANDARDS_V052 |
Type | Validation |
Rule System | Semantic |
Broad Category | Path Items |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation parameters parameter body path type |
Suggested Fixes
- Remove additional 'body' parameters from the parameters list.
- Parameter types are compared in a case-sensitive manner.