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

Support for custom Pydantic fields #30

Open
an23rd opened this issue May 27, 2023 · 0 comments
Open

Support for custom Pydantic fields #30

an23rd opened this issue May 27, 2023 · 0 comments

Comments

@an23rd
Copy link

an23rd commented May 27, 2023

Thanks for making this repo @lukasmasuch!
I would love to use your library in my repo but I would need to make it work with custom Pydantic fields like your FileContent class. How would you integrate that feature? I see that the elements are rendered by the various methods like def _render_single_file_input of InputUI. I think it would be really nice if it was possible to add custom renderers for specific classes. Maybe kept in a dictionary. Then every user can add their elements if desired and at rendering the dictionary is scanned first for a matching entry. What do you think?

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

No branches or pull requests

1 participant