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
Expected behavior
When a JSON RPC v2 request is sent like this. It should be parsed to the corresponding request struct.
Request: ["Hello world", 10, false]
After Parsing: main.Notification{Message:"Hello world", Priority:0xa, Critical:false}
Describe the bug
Unmarshaling arrays items to a request struct for JSON RPC 2 doesn't work.
rpc/v2/json2/server.go
Line 164 in 27d3316
Here since
args
is passed as a pointer it fails to Unmarshall.Versions
27d3316
Steps to Reproduce
Added an example code.
Expected behavior
When a JSON RPC v2 request is sent like this. It should be parsed to the corresponding request struct.
Request:
["Hello world", 10, false]
After Parsing:
main.Notification{Message:"Hello world", Priority:0xa, Critical:false}
Code Snippets
…
The text was updated successfully, but these errors were encountered: