OpenJobDescription / openjd-model-for-python

Provides a Python implementation of the data model for Open Job Description's template schemas.
https://github.com/OpenJobDescription/openjd-specifications/wiki
Apache License 2.0
12 stars 7 forks source link

Feature request: Compatibility with pydantic 2.x #107

Open ddneilson opened 4 months ago

ddneilson commented 4 months ago

Use Case

Some customers have pipeline tooling that is using the v2.x version of Pydantic, and is looking to include this package in that tooling. They're using a single site-packages for this tooling, so this package being on Pydantic v1.10.x is an unresolvable compatibility issue since Python doesn't allow for more than one copy of a package in site-packages.

Proposed Solution

In the short term, complete https://github.com/OpenJobDescription/openjd-model-for-python/pull/8 so that this package is compatible with both Pydantic v1.x and v2.x.