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
This commit is contained in:
parent
2985bc933b
commit
eea02607fc
|
|
@ -4,12 +4,9 @@
|
||||||
"title": "ComfyUI Prompt Format",
|
"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.",
|
"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",
|
"type": "object",
|
||||||
"patternProperties": {
|
"additionalProperties": {
|
||||||
"^[a-zA-Z0-9_-]+$": {
|
"$ref": "#/definitions/node"
|
||||||
"$ref": "#/definitions/node"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"node": {
|
"node": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
@ -33,7 +30,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": true
|
||||||
},
|
},
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue