Last active
November 28, 2017 19:12
-
-
Save fletcher/d31fcf621aa53157496128c825756f17 to your computer and use it in GitHub Desktop.
JSON Schema to validate a keybinding file for MultiMarkdown Composer
This file contains 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
{ | |
"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