-
-
Notifications
You must be signed in to change notification settings - Fork 81
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: check if fields declared on the factory belong to the model #405
feat: check if fields declared on the factory belong to the model #405
Conversation
@johnraz, the approach seems good to me. Thank you for this :) |
Also please see #406 with sourcery-suggested changes if applicable |
It's not relevant anymore but thanks for the pointer 👍 |
006f3d8
to
0e6462d
Compare
Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/405 |
I'm not seeing any unresolved reviews, but GitHub isn't letting me merge :/ @litestar-org/maintainers, could one of you merge this? |
@johnraz thank you for this and thank you for being so patient with my suggestions! @all-contributors add @johnraz for code, docs, test |
I couldn't determine any contributions to add, did you specify any contributions? I've put up a pull request to add @johnraz! 🎉 |
@guacs don't you need to re-approve ? It seems to say that one change is still requested based on your previous review 🙂 |
Oh I'm an idiot. I didn't realize I never approved it :P |
Thanks for the support with this PR btw 🎉 🙏 |
Pull Request Checklist
Description
This change will detect whenever a field is defined on the factory that doesn't exist on the model.
Use
,PostGenerated
, ...) it will raise an exception__
are not checked because they can't be easily differentiatedClose Issue(s)
Fixes #400