Last active
April 2, 2025 09:01
-
-
Save mavanmanen/d28c0d091809611639ce91af63a660a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$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