mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-24 05:40:49 +08:00
- Updated all POST endpoints to use proper Pydantic model validation: - `/v2/manager/queue/task` - validates QueueTaskItem - `/v2/manager/queue/install_model` - validates ModelMetadata - `/v2/manager/queue/reinstall` - validates InstallPackParams - `/v2/customnode/import_fail_info` - validates cnr_id/url fields - Added proper error handling with ValidationError for detailed error messages - Updated TaskQueue.put() to handle both dict and Pydantic model inputs - Added missing imports: InstallPackParams, ModelMetadata, ValidationError Benefits: - Early validation catches invalid data at API boundaries - Better error messages for clients with specific validation failures - Type safety throughout the request processing pipeline - Consistent validation behavior across all endpoints All ruff checks pass and validation is now enabled by default. |
||
|---|---|---|
| .. | ||
| utils | ||
| __init__.py | ||
| constants.py | ||
| manager_core.py | ||
| manager_server.py | ||
| share_3rdparty.py | ||