Skip to content

Instantly share code, notes, and snippets.

@fletcher
Last active November 22, 2017 13:27
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 fletcher/cd2aebedb2e337188a83ac7b00002b86 to your computer and use it in GitHub Desktop.
Save fletcher/cd2aebedb2e337188a83ac7b00002b86 to your computer and use it in GitHub Desktop.
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