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

feat: add support for generating json schemas from generated TS and move wit-bindgen-ts-near to this repo #7

Merged
merged 8 commits into from Mar 11, 2022

Conversation

willemneal
Copy link
Contributor

using ts-json-schema-generator on the generated type script allows creating schemas for the parameters of contract methods.

This will allow validators to be generated that can help prevent poorly formed function calls from reaching the RPC servers.

It will also allow generating react forms from the schemas for an automatic admin view of the contract. See: https://rjsf-team.github.io/react-jsonschema-form/

@willemneal willemneal merged commit 531059b into main Mar 11, 2022
@willemneal willemneal deleted the feat/reorg_schema branch March 15, 2022 18:50
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.

None yet

1 participant