Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
JSON Schema to validate an expansion file for MultiMarkdown Composer
{
"comment" : "JSON Schema to validate an expansions file for MultiMarkdown Composer",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "expansions",
"type": "object",
"properties" : {
"comment" : { "type" : "string" },
"expansions" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"comment" : { "type" : "string" },
"key" : { "type" : "string" },
"expansion" : { "type" : "string" }
},
"additionalProperties" : false,
"required": [
"key",
"expansion"
]
}
}
},
"required": [
"expansions"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment