Skip to content

Instantly share code, notes, and snippets.

@mavanmanen
Last active April 2, 2025 09:01
Show Gist options
  • Select an option

  • Save mavanmanen/d28c0d091809611639ce91af63a660a7 to your computer and use it in GitHub Desktop.

Select an option

Save mavanmanen/d28c0d091809611639ce91af63a660a7 to your computer and use it in GitHub Desktop.
{
"$schema": "https://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "Name of the action sequence",
"type": "string"
},
"phrase": {
"title": "Phrase",
"description": "The phrase used to activate the action sequence",
"type": "string"
},
"actions": {
"title": "Actions",
"description": "The actions that will be executed in order",
"type": "array",
"minItems": 1,
"items": {
"title": "Action",
"description": "A action that will be executed",
"type": "object",
"properties": {
"action": {
"enum": [
"keyboard",
"delay"
]
}
},
"allOf": [
{
"if": {
"properties": {
"action": {
"const": "keyboard"
}
}
},
"then": {
"properties": {
"parameter": {
"type": "string"
}
}
}
},
{
"if": {
"properties": {
"action": {
"const": "delay"
}
}
},
"then": {
"properties": {
"parameter": {
"type": "integer"
}
}
}
}
],
"required": [
"action"
]
}
}
},
"required": [
"name",
"phrase",
"actions"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment