Skip to content

Instantly share code, notes, and snippets.

@dumconstantin
Last active May 10, 2016 11:50
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 dumconstantin/7635a5b82a9983e6ad32eaf80ddba531 to your computer and use it in GitHub Desktop.
Save dumconstantin/7635a5b82a9983e6ad32eaf80ddba531 to your computer and use it in GitHub Desktop.
window.schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"ui": {
"type": "object",
"properties": {
"input": {
"type": "string"
},
"tab": {
"type": "string"
},
"hover": {
"type": "string"
}
},
"required": [
"input",
"tab",
"hover"
]
},
"todos": {
"type": "object",
"patternProperties": {
"^([a-zA-Z0-9]+)$": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"completed": {
"type": "boolean"
}
},
"required": [
"name",
"completed"
]
}
}
}
},
"required": [
"ui",
"todos"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment