Files
notifications-api/app/email_branding/email_branding_schema.py
Chris Hill-Scott ee966668bd Remove domain columns from branding table
This relationship is via the `Organisation` now; we don’t use this
column to fudge a relationship based on the user’s email address and the
matching something in these columns.
2019-04-12 15:53:17 +01:00

30 lines
958 B
Python

from app.models import BRANDING_TYPES
post_create_email_branding_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST schema for getting email_branding",
"type": "object",
"properties": {
"colour": {"type": ["string", "null"]},
"name": {"type": "string"},
"text": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]},
"brand_type": {"enum": BRANDING_TYPES},
},
"required": ["name"]
}
post_update_email_branding_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST schema for getting email_branding",
"type": "object",
"properties": {
"colour": {"type": ["string", "null"]},
"name": {"type": ["string", "null"]},
"text": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]},
"brand_type": {"enum": BRANDING_TYPES},
},
"required": []
}