body-and-form-parameters-cannot-co-exist
Overview
This rule belongs to the swagger-v2-standards-validation
ruleset and states that:
Body and form parameters cannot exist together for the same operation in the payload.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Both body and form parameters have been included in the payload. |
Code | SWAGGER20STANDARDS_V104 |
Type | Validation |
Rule System | Semantic |
Broad Category | Parameters |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | swagger2 swagger standards semantic validation body form parameter |
Suggested Fixes
- Remove either body or form parameter from the parameters list.