mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-11 10:28:55 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user