mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-12 00:02:36 -05:00
30 lines
956 B
Python
30 lines
956 B
Python
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": {
|
|
"colour": {"type": ["string", "null"]},
|
|
"name": {"type": "string"},
|
|
"text": {"type": ["string", "null"]},
|
|
"logo": {"type": ["string", "null"]},
|
|
"brand_type": {"enum": list(BrandType)},
|
|
},
|
|
"required": ["name"],
|
|
}
|
|
|
|
post_update_email_branding_schema = {
|
|
"$schema": "http://json-schema.org/draft-07/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": list(BrandType)},
|
|
},
|
|
"required": [],
|
|
}
|