Skip to content

Instantly share code, notes, and snippets.

@ryyann
Created February 11, 2017 00:39
Show Gist options
  • Save ryyann/f85b4fd373806282c93190e56f0b8df6 to your computer and use it in GitHub Desktop.
Save ryyann/f85b4fd373806282c93190e56f0b8df6 to your computer and use it in GitHub Desktop.
home container cms schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"containers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"startTime": {
"type": ["boolean", "string"]
},
"endTime": {
"type": ["boolean", "string"]
},
"timeZone": {
"type": ["boolean", "string"]
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"uid": {
"type": "string"
},
"title": {
"type": "string"
},
"imageUrls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"uid",
"title",
"imageUrls"
]
}
}
},
"required": [
"title",
"startTime",
"endTime",
"timeZone",
"items"
]
}
}
},
"required": [
"containers"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment