Skip to main content

Function: buildBodyFn()

buildBodyFn(bodyProps): ((args) => Record<string, unknown>) | undefined

Defined in: schema.ts:218

Builds a function that maps camelCase args back to a snake_case request body, skipping undefined args. Returns undefined when the op has no body.

Parameters

ParameterType
bodyPropsobject[]

Returns

((args) => Record<string, unknown>) | undefined