mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
Add get all templates schema
This commit is contained in:
15
app/v2/template_schema.py
Normal file
15
app/v2/template_schema.py
Normal 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"]
|
||||
}
|
||||
Reference in New Issue
Block a user