Skip to content

Instantly share code, notes, and snippets.

@fletcher
Last active November 28, 2017 19:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fletcher/d31fcf621aa53157496128c825756f17 to your computer and use it in GitHub Desktop.
JSON Schema to validate a keybinding file for MultiMarkdown Composer
{
"comment" : "JSON Schema to validate a keybinding file for MultiMarkdown Composer",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "keybindings",
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"action": {
"oneOf" : [
{ "type" : "string" },
{
"type" : "array",
"minItems" : 1,
"items" : {
"type" : "string"
}
}
]
},
"modifiers": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"enum" : ["cmd", "ctrl", "opt", "shift"]
}
},
"title": {
"type": "string"
}
},
"required": [
"key",
"action",
"modifiers"
]
},
"uniqueItems": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment