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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Multiple body parameters found in endpoint which is not allowed. |
Code | APIMATICPRE_V208 |
Type | Validation |
Rule System | Semantic |
Broad Category | Endpoint Parameters |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks validation apimatic body parameter endpoint |
Suggested Fixes
- Keep one body parameter and remove all others
- Turn on the WrapBodyInObject flag.