unioslo / harborapi

Python async client for the Harbor REST API v2.0.
https://unioslo.github.io/harborapi/
MIT License
28 stars 6 forks source link

Rewrite code generation and upgrade to Pydantic v2 #60

Closed pederhan closed 11 months ago

pederhan commented 1 year ago

Rewrites the code generation functionality and migrates all models to use Pydantic V2.

Code Generation

All code generation files are now located in the codegen directory. The following new Hatch scripts have been added:

The existing Justfile has been deleted as a result of migrating these scripts to Hatch.

Pydantic V2

Models have been changed to use Pydantic V2, which includes changes to validators and aliases. Changes are documented in the changelog.

Other