paritytech / jsonrpc

Rust JSON-RPC implementation
MIT License
791 stars 274 forks source link

Deserialization of `params: null` #642

Open tomusdrw opened 3 years ago

tomusdrw commented 3 years ago

Currently params: null in JSON will be deserialized into Params::None. I'm not entirely sure if this behavior is expected by the spec. If we want to be very strict, we could instead enforce that the params field is not present in case there is no parameters to pass.