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 default_factory in form fields. #322

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sergue1
Copy link
Contributor

@sergue1 sergue1 commented May 28, 2024

Fixes #263.

This PR leads to some code duplication, since Pydantic does not expose api to include default_factory into JSON schema, see https://github.com/pydantic/pydantic/blob/main/pydantic/json_schema.py#L1046. Let me know if there is a better way.

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.

Form to support default_factory
1 participant