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

Add python OpenRPC generator #4603

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Aug 4, 2023

No description provided.

@link2xt
Copy link
Collaborator Author

link2xt commented Aug 4, 2023

There is an issue that all BTreeMap and HashMap are converted to dict[Any, ...] because of GREsau/schemars#235

@link2xt link2xt force-pushed the link2xt/jsonrpc-bindings-generator branch from c7057c6 to 601806b Compare August 28, 2023 19:54
@link2xt link2xt force-pushed the link2xt/jsonrpc-bindings-generator branch 2 times, most recently from d4133c1 to d582bed Compare September 23, 2023 03:17
@link2xt
Copy link
Collaborator Author

link2xt commented Sep 26, 2023

Now there are dataclasses for every type which are automatically converted to JSON.
Next step is to generate functions that convert the result they get into dataclasses.
There is a related question with link to libraries at
https://stackoverflow.com/questions/69933251/how-to-convert-a-json-structure-into-a-dataclass-object-tree
but hopefully they are not needed.

@link2xt link2xt force-pushed the link2xt/jsonrpc-bindings-generator branch from d582bed to 5fffe04 Compare October 9, 2023 16:19
@link2xt link2xt force-pushed the link2xt/jsonrpc-bindings-generator branch from 5fffe04 to cfac9d0 Compare October 9, 2023 16:22
@link2xt link2xt deleted the branch main October 25, 2023 21:22
@link2xt link2xt closed this Oct 25, 2023
@link2xt link2xt reopened this Oct 25, 2023
@link2xt link2xt changed the base branch from master to stable October 25, 2023 21:30
@link2xt link2xt force-pushed the main branch 2 times, most recently from 1abb12e to 2af9ff1 Compare March 4, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant