Skip to content
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

JsonRpcRequest: support params as maps (JSON-RPC 2.0 feature) #103

Open
msgilligan opened this issue Apr 12, 2023 · 0 comments
Open

JsonRpcRequest: support params as maps (JSON-RPC 2.0 feature) #103

msgilligan opened this issue Apr 12, 2023 · 0 comments

Comments

@msgilligan
Copy link
Member

JSON-RPC 2.0 allows the request params value to be a map (JSON object.) Supporting this option has not been critical to any of the existing use-cases for consensusj-jsonrpc but is something that should eventually be supported.

The first step in implementation might be to define a JsonRpcParams type and re-define JsonRpcRequest to use it rather than List<Object> or perhaps even define JsonRpcRequest<T extends JsonRpcParams>.

@msgilligan msgilligan changed the title JsonRpcRequest: support params as maps JsonRpcRequest: support params as maps (JSON-RPC 2.0 feature) Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant