-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Pydantic "exclude" option is not working anymore #756
Comments
I'm not sure which commit caused this but could you try if this PR happens to fix it? |
Hi @arielschvartz, |
Hi there @gsakkis and @roman-right . Sorry for the delay here. I have not tested specifically this PR, but I tested upgrading to 1.23.1 (as I understood the PR was merged). Unfortunately, it still doesn't look it was fixed. I can do some more specific testing next week if needed. |
@gsakkis @roman-right |
Confirmed. Currently there is a conflict with another part, as |
Is there any ETA for this? I too want to use exclude to omit fields from Mongo |
Describe the bug
After upgrading from version 1.22.6 to version 1.23.0, pydantic property exclude stopped working.
Expected behavior
I have a user model which have email and password and I don't want to save the password to mongo. I have the following model:
I expected the password not to be saved into the database but after upgrading versions it is saving it.
The text was updated successfully, but these errors were encountered: