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

Use `default=` kwarg for models (PEP 681 compliance) #93

Closed pederhan closed 5 months ago

pederhan commented 5 months ago

This PR adds default= kwarg for all generated Pydantic models. That should resolve issues where type checkers are unable to infer that the first argument to Field is the default value.