mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-03 21:20:49 +08:00
Bring GET /api/assets into param-for-param parity with the projected openapi.yaml listAssets contract for the three remaining fields: - Add display_name to the Asset response schema (nullable, mirrors name) and populate it from ref.name in _build_asset_response, covering list, get, create, update, and upload responses uniformly. - Add the hash query param to ListAssetsQuery (named hash per the spec, not asset_hash) with before-validation strip/lower normalization, and thread it through list_assets_page -> list_references_page, filtering both the page and count statements on Asset.hash for consistency. - Accept include_public (bool, default true) for contract parity; it is inert in core (no public asset pool) and intentionally not passed to the service layer. Cursor pagination and size optionality are untouched. Add integration tests covering display_name mirroring, exact hash match, unknown-hash empty page, and include_public acceptance. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| asset_management.py | ||
| bulk_ingest.py | ||
| cursor.py | ||
| file_utils.py | ||
| hashing.py | ||
| image_dimensions.py | ||
| ingest.py | ||
| metadata_extract.py | ||
| path_utils.py | ||
| schemas.py | ||
| tagging.py | ||