validateOperationInput
Function: validateOperationInput()
validateOperationInput(
operationId,schema,input):void
Defined in: packages/core/src/core/operations.ts:339
Validate the input of an operation against a schema, the way callOperation does
For a transport that hands a model its input without calling the operation (the GraphQL mutations of a model no DomainService exposes): the same validator, and the same error as the operation answers.
Parameters
operationId
string
the operation, named in the error
schema
string
the schema name (<name>? to ignore the required properties)
input
unknown
the input
Returns
void
Throws
BadRequest <operationId> InvalidInput: ..., the validation errors in its details