-
-
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: deprecate FieldMeta collection params #417
feat: deprecate FieldMeta collection params #417
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.
Thanks for the quick work! It looks great :)
Something to note that this doesn't work for positional arg usage. This feels like reasonable limitation but happy to move warning usage into the methods themselves to be able to detect this. |
By this do you mean a check to see whether the value is set to a non-default value in those methods and then if so, raise the deprecation warning? |
Exactly. Theoretically this could be done by a decorator but seems overly complex for this use case so in body would be my preference if want to flag positional usage. |
Yeah, I agree, a decorator would be too much. I think this a good idea and I remember this being done in |
Got it. I'll update so positional usage is flagged too |
Head branch was pushed to by a user without write access
@adhtruong I just had that one doubt regarding the naming. Everything else looks great! |
Documentation preview will be available shortly at https://litestar-org.github.io/polyfactory-docs-preview/417 |
Pull Request Checklist
Description
Close Issue(s)