mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 08:21:13 -05:00
The admin app still needs to use the name column. Add the text field to the post data schemas. If the text is not in the post data, then populate it with the data in the name field. This should make the migration to text easier, and will work until we are able to update the admin app.
26 lines
825 B
Python
26 lines
825 B
Python
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", "null"]},
|
|
"text": {"type": ["string", "null"]},
|
|
"logo": {"type": ["string", "null"]}
|
|
},
|
|
"required": []
|
|
}
|
|
|
|
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"]}
|
|
},
|
|
"required": []
|
|
}
|