mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-09 23:30:02 +00:00
Upgrade to OpenAPI 3.1.0 with prefixItems and streamlined validation
- Upgraded OpenAPI spec from 3.0.3 to 3.1.0 - Replaced QueueItem oneOf pattern with prefixItems for precise tuple validation - Simplified GitHub Actions workflow to use only Python tests (removed redundant swagger-editor validation) - All validation now handled by openapi-spec-validator which supports OpenAPI 3.1 - QueueItem now enforces exact tuple structure: [position, prompt_id, prompt, extra_data, outputs_to_execute]
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
openapi: 3.0.3
|
||||
openapi: 3.1.0
|
||||
info:
|
||||
title: ComfyUI API
|
||||
description: 'API for ComfyUI - A powerful and modular UI for Stable Diffusion.
|
||||
@@ -1127,22 +1127,21 @@ components:
|
||||
QueueItem:
|
||||
type: array
|
||||
description: Queue item containing execution details as a 5-element tuple [position, prompt_id, prompt, extra_data, outputs_to_execute]
|
||||
prefixItems:
|
||||
- type: number
|
||||
description: Queue position number (lower numbers have higher priority)
|
||||
- type: string
|
||||
format: uuid
|
||||
description: Unique prompt identifier
|
||||
- type: object
|
||||
description: Workflow graph with nodes and connections
|
||||
additionalProperties: true
|
||||
- type: object
|
||||
description: Extra metadata (auth tokens, client info, etc.)
|
||||
additionalProperties: true
|
||||
- type: array
|
||||
description: Array of output node IDs
|
||||
items:
|
||||
type: string
|
||||
minItems: 5
|
||||
maxItems: 5
|
||||
items:
|
||||
oneOf:
|
||||
- type: number
|
||||
description: Queue position number (lower numbers have higher priority)
|
||||
- type: string
|
||||
format: uuid
|
||||
description: Unique prompt identifier
|
||||
- type: object
|
||||
description: Workflow graph with nodes and connections
|
||||
additionalProperties: true
|
||||
- type: object
|
||||
description: Extra metadata (auth tokens, client info, etc.)
|
||||
additionalProperties: true
|
||||
- type: array
|
||||
description: Array of output node IDs
|
||||
items:
|
||||
type: string
|
||||
|
||||
Reference in New Issue
Block a user