You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using the lib for interacting with a JSON-RPC server that does not provide the jsonrpc protocol version in its responses (actually it sets this field to null) and received an error in deserializing them.
Looking at sources, I saw that the Response struct defines the jsonrpc version field as required, while checking in the JSON-RPC 2.0 specification, this field is not mandatory but is actually optional.
Here the spec: JSON-RPC 2.0 Spec
The text was updated successfully, but these errors were encountered:
I was using the lib for interacting with a JSON-RPC server that does not provide the
jsonrpc
protocol version in its responses (actually it sets this field tonull
) and received an error in deserializing them.Looking at sources, I saw that the
Response
struct defines thejsonrpc
version field as required, while checking in the JSON-RPC 2.0 specification, this field is not mandatory but is actually optional.Here the spec: JSON-RPC 2.0 Spec
The text was updated successfully, but these errors were encountered: