Closed pavelzw closed 5 months ago
Is it possible to keep supporting Pydantic 1?
I don't think that we can specify "install pydantic-settings
only if pydantic < 2.0
" in poetry... Otherwise yes, that should be easy.
It also doesn't seem to work with optional groups :(
Optional group dependencies will still be resolved alongside other dependencies, so special care should be taken to ensure they are compatible with each other.
We could just not write pydantic-settings
into the dependencies but this is also suboptimal...
@dmontagu could you take a look at this PR please?
Would be a real bummer to drop Pydantic 1 support... Pydantic 1 is going to be used by lots of people for a few years.
I think adding pydantic-settings as an optional dependency is the best compromise.
Hi, I really need these changes. Can we somehow speed up the review and release process? 🙏
Pinging @dmontagu for visibility.
https://github.com/yuval9313/FastApi-RESTful is a fork of fastapi-utils that is more active and already has support for pydantic 2. Feel free to check it out.
Any update on this?
Thanks!
Closes #276