Skip to main content

no-request-body-parameter-for-get-http-method

Overview

This rule belongs to the io-docs-validation ruleset and states that:

If a method in an I/O Docs document has httpMethod set as GET, it must not define a request section as such methods do not expect a body and, therefore, all related information will be ignored automatically during import/transformations in APIMatic.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageGET HTTP method has a request defined.
CodeIODOCS_V101
TypeValidation
Rule SystemSemantic
Broad CategoryMethods
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsio docs semantic validation request body get method resource

Suggested Fixes

  • Remove the request section from the method definition if the httpMethod is set as GET.

For More Information