mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-15 03:27:24 +08:00
Add hash field to Asset schemas and deprecate asset_hash
- Add 'hash' as a nullable string field to Asset and AssetUpdated schemas - Mark 'asset_hash' as deprecated with a note pointing to 'hash' - AssetCreated inherits 'hash' via allOf from Asset - Spectral lint clean (no new warnings) Co-authored-by: Matt Miller <MillerMedia@users.noreply.github.com>
This commit is contained in:
parent
cce70621be
commit
550ffea7c2
17
openapi.yaml
17
openapi.yaml
@ -5857,9 +5857,16 @@ components:
|
|||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: Name of the asset file
|
description: Name of the asset file
|
||||||
|
hash:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
description: Blake3 content hash of the asset (preferred over asset_hash)
|
||||||
|
pattern: "^blake3:[a-f0-9]{64}$"
|
||||||
asset_hash:
|
asset_hash:
|
||||||
type: string
|
type: string
|
||||||
description: Blake3 hash of the asset content
|
nullable: true
|
||||||
|
deprecated: true
|
||||||
|
description: "Deprecated: use `hash` instead. Blake3 hash of the asset content."
|
||||||
pattern: "^blake3:[a-f0-9]{64}$"
|
pattern: "^blake3:[a-f0-9]{64}$"
|
||||||
size:
|
size:
|
||||||
type: integer
|
type: integer
|
||||||
@ -5931,8 +5938,16 @@ components:
|
|||||||
format: uuid
|
format: uuid
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
hash:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
description: Blake3 content hash of the asset (preferred over asset_hash)
|
||||||
|
pattern: "^blake3:[a-f0-9]{64}$"
|
||||||
asset_hash:
|
asset_hash:
|
||||||
type: string
|
type: string
|
||||||
|
nullable: true
|
||||||
|
deprecated: true
|
||||||
|
description: "Deprecated: use `hash` instead. Blake3 hash of the asset content."
|
||||||
pattern: "^blake3:[a-f0-9]{64}$"
|
pattern: "^blake3:[a-f0-9]{64}$"
|
||||||
tags:
|
tags:
|
||||||
type: array
|
type: array
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user