From eea02607fcb511d5b95c1403faefb8fd5397c0ac Mon Sep 17 00:00:00 2001 From: zhaog100 Date: Sun, 22 Mar 2026 13:29:29 +0800 Subject: [PATCH] fix: relax JSON Schema constraints (same as #13094 fix) - Remove strict node ID regex, allow any string key - Change node additionalProperties to true Addresses coderabbit Major review on #13095 --- schemas/prompt.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/schemas/prompt.json b/schemas/prompt.json index 92bbcf655..3bbb8f13e 100644 --- a/schemas/prompt.json +++ b/schemas/prompt.json @@ -4,12 +4,9 @@ "title": "ComfyUI Prompt Format", "description": "JSON Schema for the ComfyUI /prompt endpoint. Each key is a unique node ID, and each value describes a node with its class_type, inputs, and optional metadata.", "type": "object", - "patternProperties": { - "^[a-zA-Z0-9_-]+$": { - "$ref": "#/definitions/node" - } + "additionalProperties": { + "$ref": "#/definitions/node" }, - "additionalProperties": false, "definitions": { "node": { "type": "object", @@ -33,7 +30,7 @@ } } }, - "additionalProperties": false + "additionalProperties": true }, "inputs": { "type": "object",