Skip to content

Commit

Permalink
added schema for config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Cook committed Jul 16, 2015
1 parent 33301bc commit 076d35e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"listen": "*"
}
},
"storage": {
"managed_schema": "schema.json"
},
"permissions": [
"system.display",
"system.network",
Expand Down
18 changes: 18 additions & 0 deletions src/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "object",
"properties": {
"schedule": {
"type": "array",
"items": {
"type": "object",
"properties": {
"content": { "type": "string" },
"duration": { "type": "integer" },
"end": { "type": "string" },
"repetition": { "type": "string" },
"start": { "type": "string" }
}
}
}
}
}

0 comments on commit 076d35e

Please sign in to comment.