ComfyUI/app/assets/api
Matt Miller 51487d702e fix(assets): tighten job_ids validator + add schema-level tests
Aligns with the parallel hardening from draft PR #13848 (now closed as
a duplicate). The validator now:

- Raises ValueError on non-string list items (was: silently dropped).
- Raises ValueError on non-string / non-list top-level values like dict
  or int (was: silently passed through to Pydantic's downstream coercion).

Adds tests-unit/assets_test/queries/test_list_assets_query.py covering
the validator end-to-end: CSV canonicalization, dedup order, default
empty, invalid UUID, non-string list item, non-string non-list value,
and the max_length=500 boundary.
2026-05-19 20:00:07 -07:00
..
routes.py feat(assets): add job_ids filter to GET /api/assets 2026-05-19 19:02:11 -07:00
schemas_in.py fix(assets): tighten job_ids validator + add schema-level tests 2026-05-19 20:00:07 -07:00
schemas_out.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00
upload.py feat(assets): align local API with cloud spec (#12863) 2026-03-16 12:34:04 -07:00