Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageBoth body and form parameters have been included in the payload.
CodeSWAGGER20STANDARDS_V104
TypeValidation
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation body form parameter

Suggested Fixes

  • Remove either body or form parameter from the parameters list.

For More Information