Files
notifications-api/app/email_branding/email_branding_schema.py

30 lines
956 B
Python
Raw Permalink Normal View History

from app.enums import BrandType
post_create_email_branding_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "POST schema for getting email_branding",
"type": "object",
"properties": {
2017-07-10 13:45:48 +01:00
"colour": {"type": ["string", "null"]},
"name": {"type": "string"},
"text": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]},
"brand_type": {"enum": list(BrandType)},
},
2023-08-29 14:54:30 -07:00
"required": ["name"],
}
2017-07-10 13:45:48 +01:00
post_update_email_branding_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "POST schema for getting email_branding",
2017-07-10 13:45:48 +01:00
"type": "object",
"properties": {
"colour": {"type": ["string", "null"]},
"name": {"type": ["string", "null"]},
"text": {"type": ["string", "null"]},
"logo": {"type": ["string", "null"]},
"brand_type": {"enum": list(BrandType)},
2017-07-10 13:45:48 +01:00
},
2023-08-29 14:54:30 -07:00
"required": [],
2017-07-10 13:45:48 +01:00
}