Validates and parses an unknown value as a JSON-RPC message.
Use this to validate incoming messages in custom transport implementations. Throws if the value does not conform to the JSON-RPC message schema.
The value to validate (typically a parsed JSON object).
The validated JSONRPCMessage.
JSONRPCMessage
If validation fails.
Validates and parses an unknown value as a JSON-RPC message.
Use this to validate incoming messages in custom transport implementations. Throws if the value does not conform to the JSON-RPC message schema.