-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods that return nothing must contain result
field
#102
Comments
This is what other servers return on a successful call: {
"jsonrpc": "2.0",
"result": null,
"id": 1
} |
@oblique, so to make this spec compliant, we would change unit tests to return |
yes |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We were trying to call a method that returns nothing but the library that we use in the client rejects to deserialize the response.
After some investigation we found the following in JSON RPC 2.0 spec:
So on success the
result
field must exists.The following unit tests are wrong:
go-jsonrpc/rpc_test.go
Lines 130 to 133 in 17a3577
The text was updated successfully, but these errors were encountered: