mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-30 05:23:37 +08:00
fix: relax JSON Schema constraints for node IDs and properties
- Remove strict patternProperties regex for node IDs (runtime allows any string key) - Change node additionalProperties to true (runtime allows extra metadata fields) - Update docs to clarify node ID format is not constrained by schema Fixes coderabbit Major review comments on #13094
This commit is contained in:
parent
bdead4bc04
commit
3f627561f0
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user