mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-26 02:42:36 +08:00
Fix OpenAPI validation by resolving duplicate content blocks
- Fixed all duplicate YAML content entries in both main and test files - Reverted from OpenAPI 3.1 to 3.0.3 for GitHub Actions compatibility - QueueItem now uses minItems/maxItems instead of prefixItems - All endpoints now have proper response schema organization
This commit is contained in:
40
openapi.yaml
40
openapi.yaml
@@ -1,4 +1,4 @@
|
||||
openapi: 3.1.0
|
||||
openapi: 3.0.3
|
||||
info:
|
||||
title: ComfyUI API
|
||||
description: 'API for ComfyUI - A powerful and modular UI for Stable Diffusion.
|
||||
@@ -1126,21 +1126,23 @@ components:
|
||||
description: Additional metadata fields
|
||||
QueueItem:
|
||||
type: array
|
||||
description: Queue item containing execution details as a 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
|
||||
items: false
|
||||
description: Queue item containing execution details as a 5-element tuple [position, prompt_id, prompt, extra_data, outputs_to_execute]
|
||||
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