no-body-in-request-with-get-method
Overview
This rule belongs to the insomnia-validation
ruleset and states that:
A request resource with method GET must not define a body
(i.e. the request payload). This is because such methods do not expect a body and, therefore, all related information will be ignored automatically during import/transformations in APIMatic.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Request resource with method GET has defined body which will be ignored. |
Code | INSOMNIA_V201 |
Type | Validation |
Rule System | Semantic |
Broad Category | Requests |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | insomnia semantic validation body get method request |
Suggested Fixes
- Open the
Body
dropdown in the Insomnia app request and selectNo Body
or an equivalent option from the list. Save and export your file again. - Remove
body
definition from the request resource in your Insomnia Export file.