Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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