ComfyUI-Manager/comfyui_manager/glob
bymyself 884b503728 [feat] Add comprehensive Pydantic validation to all API endpoints
- 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.
2025-06-13 19:37:57 -07:00
..
utils [cleanup] Remove completed TODO comments and fix ruff issues 2025-06-13 19:37:57 -07:00
__init__.py restructuring 2025-04-13 09:26:02 +09:00
constants.py [feat] Add client_id support to task queue system 2025-06-13 19:33:05 -07:00
manager_core.py Merge branch 'main' into draft-v4 2025-05-19 06:07:31 +09:00
manager_server.py [feat] Add comprehensive Pydantic validation to all API endpoints 2025-06-13 19:37:57 -07:00
share_3rdparty.py fixed: avoid except: 2025-04-21 12:42:50 +09:00