-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
fix: respect override of optional nested model fields #420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/420 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@all-contributors add @julioolvr for code, test |
I've put up a pull request to add @julioolvr! 🎉 |
Pull Request Checklist
Description
None
being randomly assigned to optional fields whose type is another model even if attributes for that model are passed tobuild
as adict
Close Issue(s)
I tried to mimic the structure of other tests on the file but open to feedback. The code change makes sense to me (if there are build parameters defined for a given field, don't consider setting it to
None
) but there might be other code paths I'm not considering.