mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-16 20:48:37 -04:00
Needed to update old migration scripts so that the email_branding name is not null when creating the test dbs. This should no affect the migrations elsewhere.
32 lines
1.0 KiB
Python
32 lines
1.0 KiB
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"]},
|
|
"domain": {"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"]},
|
|
"domain": {"type": ["string", "null"]},
|
|
"brand_type": {"enum": BRANDING_TYPES},
|
|
},
|
|
"required": []
|
|
}
|