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" }
},
{
"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",
"properties": {
"vibration": {
"enum": [
"shear",
"entity_act",
"entity_interact"
]
"enum": ["shear", "entity_act", "entity_interact"]
}
},
"examples": [
{ "vibration": "shear" },
{ "vibration": "entity_act" },
{ "vibration": "entity_interact" }
]
"examples": [{ "vibration": "shear" }, { "vibration": "entity_act" }, { "vibration": "entity_interact" }]
},
"set_property": {
"title": "Set Property",
@@ -228,9 +222,10 @@
"first_valid": {
"title": "First Valid",
"description": "Will evaluate every filter in order and execute the first valid one",
"type": "object",
"additionalProperties": false,
"properties": { }
"type": "array",
"items": {
"$ref": "#/definitions/event_base"
}
}
}
},
@@ -303,18 +298,10 @@
"type": "object",
"properties": {
"vibration": {
"enum": [
"shear",
"entity_act",
"entity_interact"
]
"enum": ["shear", "entity_act", "entity_interact"]
}
},
"examples": [
{ "vibration": "shear" },
{ "vibration": "entity_act" },
{ "vibration": "entity_interact" }
]
"examples": [{ "vibration": "shear" }, { "vibration": "entity_act" }, { "vibration": "entity_interact" }]
},
"set_property": {
"title": "Set Property",