Skip to main content

get-method-cannot-have-body

Overview

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

If a resource defines a get method, the method must not define a body 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 method has a body defined.
CodeRAML_V400
TypeValidation
Rule SystemSemantic
Broad CategoryResources and Methods
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsraml semantic validation body get method resource

Suggested Fixes

  • Remove the body section from the method definition marked as get in the resource.

For More Information