Skip to main content

resolveArguments

@webda/core


Function: resolveArguments()

resolveArguments(context, operation): Promise<any[]>

Defined in: packages/core/src/core/operations.ts:361

Resolve method arguments from the OperationContext using the operation's input schema metadata.

The REST transport merges path/query params into the context so that context.getParameters() contains URL-derived values (e.g., {uuid}) while context.getInput() contains the request body. This function merges both sources (body overrides params) and extracts arguments based on the input schema property names and order.

Parameters​

context​

OperationContext

the execution context

operation​

OperationDefinition

the operation definition

Returns​

Promise<any[]>

an array of resolved arguments to pass to the operation method