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

Make RuntypeBase more small shape #246

Open
yuhr opened this issue May 1, 2021 · 0 comments
Open

Make RuntypeBase more small shape #246

yuhr opened this issue May 1, 2021 · 0 comments

Comments

@yuhr
Copy link
Collaborator

yuhr commented May 1, 2021

The current interface RuntypeBase requires methods check, guard, and assert, but these APIs are built on validate. Probably it's better to have RuntypeBase only need validate method predefined and others are automatically populated internally, so that users can easily define their own runtypes, and make them integrated into runtypes' ecosystem.

Also we would provide a helper function to upgrade essential objects which have only validate method into full-fledged runtypes. (Maybe exposing create function?)

@yuhr yuhr added this to To do in Development Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant