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

Allows accept responses in JSON-RPC 1.0 format #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kosik
Copy link

@kosik kosik commented Nov 5, 2022

The JSON-RPC v1.0 responses are very similar to v2.0. The jsonrpc field was added to responses of the second version of the protocol. In the first version of the protocol, this field is optional and may be absent.

This pool-request allows the simple-json-rpc library to accept responses in jsonrpc 1.0 format; See RequestBuilder class;

After this I done the enhancement, I attempted to deploy a project with the simple-json-rpc library and found out that there are dependencies that are not compatible with the latest Java versions. So then I looked through the code of the simple-json-rpc and found out that the core of the library is not using Java 17 itself. A major things using the latest Java language features is Tests and connected with them DTO objects there. So, I rewrote records in POJO manner, verified all tests are passing and that is it! Library is compatible with java 10+ now;

Please, accept the pool request, this will make it possible to import simple-json-rpc in a larger number of projects.

- Allows accept responses in JSON-RPC 1.0 format;
- Makes the library compatible with java 10+;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant