Skip to content

Instantly share code, notes, and snippets.

@jpmens
Created November 13, 2023 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmens/acbdeef11aec1a0d1d83325ddebf30e3 to your computer and use it in GitHub Desktop.
Save jpmens/acbdeef11aec1a0d1d83325ddebf30e3 to your computer and use it in GitHub Desktop.
{
"type": "object",
"properties": {
"_type": {
"enum": [ "cmd", "waypoint" ]
},
"action": {
"default": "dump",
"enum" : [
"reportLocation",
"reportSteps",
"dump",
"waypoints",
"clearWaypoints",
"setConfiguration",
"setWaypoints",
"action"
]
},
"content" : {
"type" : "string"
},
"url" : {
"type" : "string"
},
"notification" : {
"type" : "string"
}
},
"if" : {
"properties" : {
"action" : { "const" : "action" }
}
},
"then" : {
"oneOf": [
{
"required" : [ "content" ]
},
{
"required" : [ "url" ]
},
{
"required" : [ "notification" ]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment