mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-06 21:28:06 +00:00
Update to OpenAPI 3.1.0 and use prefixItems for QueueItem
- Changed OpenAPI version from 3.0.3 to 3.1.0 as suggested in PR review - Updated QueueItem schema to use prefixItems instead of oneOf for proper tuple representation - Added items: false to enforce the 5-element tuple structure - Follows OpenAPI 3.1 best practices for representing fixed-length arrays (tuples)
This commit is contained in:
parent
13a970b3a6
commit
78fcc57e33
38
openapi.yaml
38
openapi.yaml
@ -1,4 +1,4 @@
|
|||||||
openapi: 3.0.3
|
openapi: 3.1.0
|
||||||
info:
|
info:
|
||||||
title: ComfyUI API
|
title: ComfyUI API
|
||||||
description: 'API for ComfyUI - A powerful and modular UI for Stable Diffusion.
|
description: 'API for ComfyUI - A powerful and modular UI for Stable Diffusion.
|
||||||
@ -1139,21 +1139,21 @@ components:
|
|||||||
description: Additional metadata fields
|
description: Additional metadata fields
|
||||||
QueueItem:
|
QueueItem:
|
||||||
type: array
|
type: array
|
||||||
description: Queue item containing execution details
|
description: Queue item containing execution details as a tuple [position, prompt_id, prompt, extra_data, outputs_to_execute]
|
||||||
items:
|
prefixItems:
|
||||||
oneOf:
|
- type: number
|
||||||
- type: integer
|
description: Queue position number (lower numbers have higher priority)
|
||||||
description: Queue position number
|
- type: string
|
||||||
- type: string
|
format: uuid
|
||||||
format: uuid
|
description: Unique prompt identifier
|
||||||
description: Unique prompt identifier
|
- type: object
|
||||||
- type: object
|
description: Workflow graph with nodes and connections
|
||||||
description: Workflow graph with nodes and connections
|
additionalProperties: true
|
||||||
additionalProperties: true
|
- type: object
|
||||||
- type: object
|
description: Extra metadata (auth tokens, client info, etc.)
|
||||||
description: Extra metadata (auth tokens, client info, etc.)
|
additionalProperties: true
|
||||||
additionalProperties: true
|
- type: array
|
||||||
- type: array
|
description: Array of output node IDs
|
||||||
description: Array of output node IDs
|
items:
|
||||||
items:
|
type: string
|
||||||
type: string
|
items: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user