Make first_valid an array (#341)

This commit is contained in:
Piotr Brzozowski
2025-04-04 16:20:26 +02:00
committed by GitHub
parent 2d24f4f5cd
commit b4aacd0bf4

View File

@@ -21,7 +21,9 @@
"items": { "type": "string", "description": "A reference to a component group.", "title": "Component Groups" } "items": { "type": "string", "description": "A reference to a component group.", "title": "Component Groups" }
}, },
{ {
"type": "string", "description": "A reference to a component group.", "title": "Component Groups" "type": "string",
"description": "A reference to a component group.",
"title": "Component Groups"
} }
] ]
} }
@@ -116,18 +118,10 @@
"type": "object", "type": "object",
"properties": { "properties": {
"vibration": { "vibration": {
"enum": [ "enum": ["shear", "entity_act", "entity_interact"]
"shear",
"entity_act",
"entity_interact"
]
} }
}, },
"examples": [ "examples": [{ "vibration": "shear" }, { "vibration": "entity_act" }, { "vibration": "entity_interact" }]
{ "vibration": "shear" },
{ "vibration": "entity_act" },
{ "vibration": "entity_interact" }
]
}, },
"set_property": { "set_property": {
"title": "Set Property", "title": "Set Property",
@@ -228,9 +222,10 @@
"first_valid": { "first_valid": {
"title": "First Valid", "title": "First Valid",
"description": "Will evaluate every filter in order and execute the first valid one", "description": "Will evaluate every filter in order and execute the first valid one",
"type": "object", "type": "array",
"additionalProperties": false, "items": {
"properties": { } "$ref": "#/definitions/event_base"
}
} }
} }
}, },
@@ -303,18 +298,10 @@
"type": "object", "type": "object",
"properties": { "properties": {
"vibration": { "vibration": {
"enum": [ "enum": ["shear", "entity_act", "entity_interact"]
"shear",
"entity_act",
"entity_interact"
]
} }
}, },
"examples": [ "examples": [{ "vibration": "shear" }, { "vibration": "entity_act" }, { "vibration": "entity_interact" }]
{ "vibration": "shear" },
{ "vibration": "entity_act" },
{ "vibration": "entity_interact" }
]
}, },
"set_property": { "set_property": {
"title": "Set Property", "title": "Set Property",