Interface IParameterOptionsWithBodySource

Options for Parameter decorator, which defines the source of the paremeter as the current value of body property of request context.

interface IParameterOptionsWithBodySource {
    source: Nilable<"body">;
    transformTo?: Nilable<ParameterDataTransformTo>;
}

Hierarchy

Properties

Properties

source: Nilable<"body">

The name of the source.

transformTo?: Nilable<ParameterDataTransformTo>

A custom function, which transforms input data to a new format / type.

Generated using TypeDoc