Skip to content

Instantly share code, notes, and snippets.

@dima117
Last active October 14, 2016 15:11
Show Gist options
  • Save dima117/27c2b5cd25b638579b22149bedf01786 to your computer and use it in GitHub Desktop.
Save dima117/27c2b5cd25b638579b22149bedf01786 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"deps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"block": {
"type": "string"
},
"elem": {
"type": "string"
},
"mod": {
"type": "string"
},
"val": {
"type": [
"string",
"boolean"
]
}
},
"dependencies": {
"val": {
"required": [
"mod"
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false,
"required": [
"deps"
]
}
{
"$schema":"http://json-schema.org/draft-04/schema#",
"properties":{
"blocks":{
"type":"array",
"items":{
"type":"object",
"properties":{
"name":{
"type":"string"
},
"elems":{
"type":"array",
"items":{
"type":"object",
"properties":{
"name":{
"type":"string"
},
"mods":{
"type":"array",
"items":{
"type":"object",
"properties":{
"name":{
"type":"string"
},
"vals":{
"type":"array",
"items":{
"type":"object",
"properties":{
"name":{
"type":[
"string",
"boolean"
]
}
}
}
}
},
"additionalProperties":false
}
}
},
"additionalProperties":false
}
},
"mods":{
"type":"array",
"items":{
"type":"object",
"properties":{
"name":{
"type":"string"
},
"vals":{
"type":"array",
"items":{
"type":"object",
"properties":{
"name":{
"type":[
"string",
"boolean"
]
}
}
}
}
},
"additionalProperties":false
}
}
},
"additionalProperties":false
}
}
},
"additionalProperties":false,
"required":[
"blocks"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment