Skip to main content

Module validation

Module validation 

Source
Expand description

Message validation utilities.

Functions§

validate_and_parse
Validate size and structure, then parse into a JsonRpcMessage.
validate_message
Validate that a JSON value is a well-formed JSON-RPC 2.0 message.
validate_message_size
Validate that a message’s content doesn’t exceed the maximum size (1MB).