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

Omit empty "params" in requests #9

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

Makman2
Copy link
Contributor

@Makman2 Makman2 commented Dec 10, 2023

According to the JSON-RPC 2.0 Specification Section 4 (https://www.jsonrpc.org/specification#request_object) the "params" key may be omitted.

Closes #8

According to the JSON-RPC 2.0 Specification Section 4
(https://www.jsonrpc.org/specification#request_object)
the "params" key may be omitted.

Closes emlove#8
Copy link
Owner

@emlove emlove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! ✨

@emlove emlove merged commit 4dd4958 into emlove:main Dec 11, 2023
6 checks passed
@emlove
Copy link
Owner

emlove commented Dec 11, 2023

I've released version 2.2.0 with these changes

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.

Automatically omit "params" when it's empty
2 participants