pub fn validate_request_value(
value: Value,
) -> Result<JsonRpcRequest, ValidationError>Expand description
Validate a single request Value and convert it into a typed
JsonRpcRequest. The caller is responsible for the outer
batch-vs-single split and for producing the top-level parse-error
response on failing serde_json::from_slice.
Rejects at -32600:
- root value not an object
- missing or non-string
jsonrpcfield jsonrpcvalue not exactly"2.0"- missing or empty
method idthat is notnull, a string, ani64, or au64(explicitly rejects fractional, exponent-form, boolean, object, and array ids)paramsthat is not an object, array, or null