fs-lawrisk/lawrisk/services
Codex Agent 1fa9385d02 fix: resolve UUID JSON serialization error in checkpoint creation
Issue:
- Object of type <class 'uuid.UUID'> is not JSON serializable error when creating checkpoints
- UUID objects in database records couldn't be serialized to JSON

Solution:
- Updated json_serializer function in create_checkpoint() to properly handle UUID types
- Added explicit isinstance check for uuid.UUID before checking for isoformat
- Ensures all UUID values are converted to strings before JSON serialization

This ensures checkpoints can be created successfully with all database data types.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 11:52:06 +08:00
..
__init__.py refactor: 重新规划项目结构为标准Python包 2025-10-29 15:31:01 +08:00
lawrisk_service.py refactor: 重新规划项目结构为标准Python包 2025-10-29 15:31:01 +08:00
lawrisk_v2_service.py refactor: 重新规划项目结构为标准Python包 2025-10-29 15:31:01 +08:00
licensing_repo.py fix: resolve UUID JSON serialization error in checkpoint creation 2025-10-30 11:52:06 +08:00