Add get all templates schema

This commit is contained in:
Ken Tsang
2017-03-24 10:23:47 +00:00
parent ddda2bd158
commit f5da3574b5
3 changed files with 161 additions and 9 deletions

15
app/v2/template_schema.py Normal file
View File

@@ -0,0 +1,15 @@
from app.schema_validation.definitions import uuid
# this may belong in a templates module
template = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "template schema",
"type": "object",
"title": "notification content",
"properties": {
"id": uuid,
"version": {"type": "integer"},
"uri": {"type": "string", "format": "uri"}
},
"required": ["id", "version", "uri"]
}