Using jsonschema for create_template.

Updated jsonschema to Draft7, this allowed a conditional validation on subject, if template_type == 'email' or 'letter' then subject is required.
This version is backward compatible with Draft4.
When creating TempalteRedacted, I've built the dict depending on if the created_by or created_by_id exists.
This commit is contained in:
Rebecca Law
2018-11-07 16:17:08 +00:00
parent 1230495e88
commit 39198ed67e
8 changed files with 69 additions and 17 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ click-datetime==0.2
eventlet==0.23.0
gunicorn==19.7.1
iso8601==0.1.12
jsonschema==2.6.0
jsonschema==3.0.0a3
marshmallow-sqlalchemy==0.14.1
marshmallow==2.16.0
psycopg2-binary==2.7.5