-
Notifications
You must be signed in to change notification settings - Fork 992
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
#2149: Resolve JSON RPC 2.0 non-compliance #3209
#2149: Resolve JSON RPC 2.0 non-compliance #3209
Conversation
Currently, the JSON RPC requests and responses are not compliant with the spec as the server only accepts strings. This change is *non-breaking* as it simply adds the ability to understand integers as expected. Any old code continuing to only send string requests will continue to work as before.
Test would be beneficial for this PR not just to test the current impl but also to make sure that this case is not broken in the future |
Ordinarily, yes, but this was discussed in Keybase. If that doesn't satisfy, then feel free to add to the discussion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @WhoNeedszZz, thank you for the PR :). Looking good 👍 . As mentioned by @hashmap above, tests would be beneficial here. I think a simple serialize/deserialize unit tests would probably do here. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved based on the fact that tests are currently being working on #3210. LGTM 🍾
This reverts commit 1527802.
Currently, the JSON RPC requests and responses are not compliant with the spec as the server only accepts strings.
This change is non-breaking as it simply adds the ability to understand integers as expected.
Any old code continuing to only send string requests will continue to work as before.
Resolves #2149