Class: module:"openapi-transformers/remove-request-body.js"

module:"openapi-transformers/remove-request-body.js"(methodsopt, non-null)

Transformer to remove requestBody from operations on a given set of HTTP methods. This often occurs due to authoring errors where an operation which expects a request body is copied to one that does not.

Constructor

new module:"openapi-transformers/remove-request-body.js"(methodsopt, non-null)

Constructs a RemoveRequestBodyTransformer for a given set of HTTP methods.
Parameters:
Name Type Attributes Description
methods module:globals.Iterable <optional>
HTTP Methods for which to remove requestBody. (default: [GET, HEAD, TRACE])
Source: