🚀 What's New in v0.6.7
✨ Features
-
Improved UUID support in Django model serialization:
-
UUIDFieldandUUIDAutoFieldare now correctly mapped tostr. -
Foreign keys referencing UUID primary keys are serialized into strings.
-
Enhanced
get_pydantic_typeto prioritizeUUIDFieldbeforeAutoField.
-
🛠️ Fixes
-
Fixed Pydantic validation errors when returning UUID primary keys.
-
Added
parse_model_inthelper to properly convert string path parameters into the correct type for model PKs in CRUD routes. -
Ensured compatibility with projects using
DEFAULT_AUTO_FIELD = "core.fields.UUIDAutoField". -
No breaking changes for projects using standard integer
AutoFieldPKs.
🔗 Links
-
Fix UUID handling in Django models by @AghastyGD in #41
-
Full Changelog: v0.6.5...v0.6.7