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

Pydantic apply_each_item_validators #2

Closed
paoloap opened this issue Jul 19, 2023 · 1 comment
Closed

Pydantic apply_each_item_validators #2

paoloap opened this issue Jul 19, 2023 · 1 comment

Comments

@paoloap
Copy link

paoloap commented Jul 19, 2023

Hi, trying to launch the project through uvicorn app.main:app --host localhost --port 8000 --reload I receive TypeError: @validator(..., each_item=True) cannot be applied to fields with a schema of json-or-python.
I tried both writing it from scratch and cloning the repo.
Not sure how to debug this, am I the only one who receives this error? The pydantic version is 2.0.3.
Thanks!

@paoloap
Copy link
Author

paoloap commented Jul 19, 2023

Just found out that this bug has been opened on fastapi-jwt-auth.
The problem can be fixed ensuring to have the following versions:

fastapi==0.100.0
fastapi_jwt_auth==0.5.0
pydantic==2.0.2

@paoloap paoloap closed this as completed Jul 19, 2023
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

No branches or pull requests

1 participant