2019-01-24 16:38:52 +00:00
|
|
|
post_letter_branding_schema = {
|
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
|
|
|
"description": "POST schema for creating or updating a letter brand",
|
|
|
|
|
"type": "object",
|
|
|
|
|
"properties": {
|
|
|
|
|
"name": {"type": ["string", "null"]},
|
|
|
|
|
"filename": {"type": ["string", "null"]},
|
|
|
|
|
"domain": {"type": ["string", "null"]},
|
|
|
|
|
},
|
2019-01-24 17:39:48 +00:00
|
|
|
"required": ("name", "filename", "domain"),
|
|
|
|
|
# Typically we allow additional properties but we don't want to update letter_branding platform_admin,
|
|
|
|
|
# this can handle this without adding extra code in the rest endpoint.
|
|
|
|
|
"additionalProperties": False
|
2019-01-24 16:38:52 +00:00
|
|
|
}
|