-
Notifications
You must be signed in to change notification settings - Fork 189
feat: add namespace_separator option for RPC methods #1544
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
Conversation
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.
Thank you for the PR, I see no problem to support this and the code looks clean.
Had a few errors with the tests, @niklasad1. But they are resolved now. Would love to hear your thoughts. |
All right, looks good to me |
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
tests/tests/proc_macros.rs:323
- Consider adding test coverage for the scenario where
namespace_separator
is not provided, ensuring that the default '_' behavior is correctly applied.
assert_eq!(&res, "Called with: 1, test");
Thanks! I'm excited to see it get merged. |
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.
LGTM, thanks!
Hi @niklasad1 & @tomaka! 👋
I just opened this issue (#1543) after noticing that
jsonrpsee
doesn’t currently support namespace separators and instead defaults to using underscores.To address this, I’ve submitted a PR that introduces a
namespace_separator
option. The implementation seems to be working, but since I’m not deeply familiar with the codebase, tests, or documentation conventions, I’d really appreciate your input.Your feedback would be super helpful in making this PR production-ready—we're relying on this feature and would love to get it merged.
Thanks in advance! 🙏