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:
bymyself
2025-07-20 16:55:47 -07:00
parent 6a70191868
commit 7a691c980f
2 changed files with 118 additions and 127 deletions

View File

@@ -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