-
Notifications
You must be signed in to change notification settings - Fork 119
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 2.1.1 #546
Comments
+1 Likewise, support for |
Everyone who doesn't want to wait can use my repository https://github.com/anton-petrov/redis-om-python and install package directly from github. I have already tested redis-om with pydantic 2.1.1 on a production project. For example, for poetry project, add this line to pyproject.toml:
|
Hii Guys can u help me |
Error:===
fastapi.exceptions.FastAPIError: Invalid args for response field! Hint: check that <class 'inventory.schema.Product'> is a valid Pydantic field type. If you are using a return type annotation that is not a valid Pydantic field (e.g. Union[Response, dict, None]) you can disable generating the response model from the type annotation with the path operation decorator parameter response_model=None. Read more: https://fastapi.tiangolo.com/tutorial/response-model/ |
Overriding the dependency check worked for me: pip install pydantic==2.5 --force-reinstall The command triggered a dependency error, yet it successfully installed pydantic 2.5 alongside redis-om 0.2.1. I use Conda/Mamba as my virtual environment manager. I believe it's worth trying this approach even if you don't use Conda/Mamba. Note that it's not possible to force a version via Conda's |
Need support for newest pydantic 2.1.1, just released 2023-07-25
redis-om (0.2.1) depends on pydantic (>=1.10.2,<2.1.0)
The text was updated successfully, but these errors were encountered: