Skip to main content

multiple-body-parameters

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

Unless the "WrapBodyInObject" flag is enabled, an endpoint must contain only one body parameter definition.

PropertyValue
EnabledYes
Maximum SeverityError
MessageMultiple body parameters found in endpoint which is not allowed.
CodeAPIMATICPRE_V208
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Parameters
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic body parameter endpoint

Suggested Fixes

  • Keep one body parameter and remove all others
  • Turn on the WrapBodyInObject flag.

For More Information