2024-01-17 17:28:46 -05:00
|
|
|
from app.enums import BrandType
|
2018-08-23 13:53:05 +01:00
|
|
|
|
2018-02-05 12:02:35 +00:00
|
|
|
post_create_email_branding_schema = {
|
2022-04-08 17:05:59 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2018-02-05 12:02:35 +00:00
|
|
|
"description": "POST schema for getting email_branding",
|
2017-07-07 10:00:38 +01:00
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
2017-07-10 13:45:48 +01:00
|
|
|
"colour": {"type": ["string", "null"]},
|
2019-04-09 14:33:38 +01:00
|
|
|
"name": {"type": "string"},
|
2018-08-02 15:55:45 +01:00
|
|
|
"text": {"type": ["string", "null"]},
|
2018-08-20 10:57:42 +01:00
|
|
|
"logo": {"type": ["string", "null"]},
|
2024-02-21 12:35:18 -05:00
|
|
|
"brand_type": {"enum": list(BrandType)},
|
2017-07-07 10:00:38 +01:00
|
|
|
},
|
2023-08-29 14:54:30 -07:00
|
|
|
"required": ["name"],
|
2017-07-07 10:00:38 +01:00
|
|
|
}
|
2017-07-10 13:45:48 +01:00
|
|
|
|
2018-02-05 12:02:35 +00:00
|
|
|
post_update_email_branding_schema = {
|
2022-04-08 17:05:59 +01:00
|
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
2018-02-05 12:02:35 +00:00
|
|
|
"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"]},
|
2018-08-02 15:55:45 +01:00
|
|
|
"text": {"type": ["string", "null"]},
|
2018-08-20 10:57:42 +01:00
|
|
|
"logo": {"type": ["string", "null"]},
|
2024-02-21 12:35:18 -05:00
|
|
|
"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
|
|
|
}
|