Skip to main content

Function: getRequestBody()

getRequestBody(__namedParameters): RequestBody | undefined

Defined in: core/form.ts:46

The resolved request body schema of an operation, with its properties (and array item schemas) resolved, and whether it is sent as JSON or multipart.

Parameters​

ParameterType
__namedParameters{ operation: ResolvedOperation; spec: OpenApiSpec; }
__namedParameters.operationResolvedOperation
__namedParameters.specOpenApiSpec

Returns​

RequestBody | undefined