-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reject structurally invalid request IDs.
The JSON-RPC 2.0 spec stipulates that request IDs should be strings or integral number values. Prior to this commit, the library would accept basically any JSON value as an ID. Now we reject objects (other than null), Booleans, and arrays. The spec also says that fractional numbers should not be used, but we still accept them. Explicitly setting "id" to null is treated as equivalent to omitting the "id".
- Loading branch information
1 parent
a9921c4
commit 1eef6e8
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters