Function: validateReply()
validateReply(
subject,reply,mode):ValidationResult<unknown>
Defined in: packages/contracts/src/messages.ts:81
Validates a reply (the whole Reply<T> union) for a request subject.
Parameters
subject
string
A concrete request subject or registry key.
reply
unknown
The untrusted reply.
mode
strict before sending, lenient on receipt.
Returns
ValidationResult<unknown>
The validation outcome.
Throws
The subject has no schema.
Throws
The subject is an event, which has no reply.