-
-
Notifications
You must be signed in to change notification settings - Fork 68
feat(rpc): runtime type validation for rpc calls #161
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
base: main
Are you sure you want to change the base?
Conversation
commit: |
|
I think this is mostly done. Before adding some tests, I wanted to check whether I’m heading in the right direction. Since the definitions of RPC methods are scattered across multiple packages ( This approach, however, introduces some additional exports and also creates cyclic dependencies. As a result, I worked around this by marking To avoid the cyclic dependency, it looks like one option would be to move all schemas into I might be missing something here, so I’d really appreciate some guidance on the intended architecture. In particular, I’d love to understand where you expect the schemas to live and how the dependency direction between |
Description
Introduce valibot to rpc interface, for better type generation and API verification.
Linked Issues
#9
Additional context