Skip to main content

generateActionInput

@webda/content-mapper


Function: generateActionInput()

generateActionInput(method, options): JSONSchema7

Defined in: packages/content-mapper/src/schema/action.ts:98

Schema for an action's arguments.

Every parameter is included except the ones typed as an operation context: they receive the context, so the schema records their position instead (x-webda-arguments, x-webda-context). Without a context parameter the argument order is the order of properties.

Parameters​

method​

MethodDeclaration

the decorated method

options​

ActionSchemaOptions

project and checker

Returns​

JSONSchema7

the arguments schema