Upgrade to Pydantic >2.0

Hi @Chris, @mostapha, all,

I wanted to file a request that the team consider upgrading the Pydantic dependency to >2

Currently the pydantic-openapi-helper library requires pydantic<2

This causes some ‘friction’ and conflicts with other packages. It also causes some issues with LLM usage, as most default to Pydantic>2 syntax these days (in my experience at least). So far we have been able to find work-arounds, though sometimes that means forgoing the use of certain tools/packages/extensions.

I know it is a pain, since they changed the api when they went from v1 to v2, but I’d like to request that eventually this dependency get upgraded in order to help facilitate the use of the LBT packages more easily within other environments.

Pydantic 2 has been out for almost 2 years now, so would be be much appreciated if we could align the LBT dependencies with the modern version at some point.

thanks!!
@edpmay

Hey @edpmay ,

This is more of a question for @mostapha since he did a lot of the work to put together the pydantic-openapi-helper and he has the best sense of how large an effort it is to make the change. But, just to set expectations, I am pretty sure that it’s a substantial effort and this is the first time that I have seen anyone bring up the pydantic 2.0 shift as a pain point in the LBT community. So it still might be some time before the cost/benefit to making the change becomes worth it.

Can you be more specific about the packages that are causing the dependency conflicts? Maybe we can find a solution to help you resolve or work around them for the time being until we can eventually update the LBT core libraries.