-
Notifications
You must be signed in to change notification settings - Fork 31
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
rust generator-client fails on multi-geth openrpc.json #146
Comments
the issues involved here:
|
Looked into the generated code, so here are some more specifics: Multiple duplicate use statements
Multiple definitions of the same type:
Seems like the same issue as above, but with some types being regenerated if used twice in different methods?
Though the solution 3 is very dirty in terms of resulting API, as types related to different methods aren't compatible out of the box. Tries to add derive/serialize to foreign typesNot present after fixing other errors Generated code's return value is sometimes missing its generic type.For the following
The common issue here is the Missing types
Possible solutions: prefix the method name to the ambiguous types, no idea why there's no definition at all though, maybe generator couldn't decide which one of the multiple variants of Tests mis-generation for types with common prefixThere's the following list of functions:
The generated test for |
Actually about the I'd propose not using the
The
|
@mersinvald names shouldn't be empty, I'll fix that up in the |
@mersinvald the |
related to #169 |
this openrpc file lives here now https://github.com/etclabscore/ethereum-json-rpc-specification |
fixed! |
Describe the bug
When I try to generate a client with mutli-geth's
openrpc.json
I get errorsTo Reproduce
Steps to reproduce the behavior:
open-rpc-generator-client -s https://raw.githubusercontent.com/etclabscore/multi-geth/feat/openrpc/openrpc.json MultiGethRpc
Expected behavior
I expect no errors and get a client output in the specified directory
Additional context
The text was updated successfully, but these errors were encountered: