mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-03 13:00:44 -05:00
Now we have the org banner branding, not all organisations need a logo. So it shouldn’t be an error to not provide one.
24 lines
725 B
Python
24 lines
725 B
Python
post_create_organisation_schema = {
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"description": "POST schema for getting organisation",
|
|
"type": "object",
|
|
"properties": {
|
|
"colour": {"type": ["string", "null"]},
|
|
"name": {"type": ["string", "null"]},
|
|
"logo": {"type": ["string", "null"]}
|
|
},
|
|
"required": []
|
|
}
|
|
|
|
post_update_organisation_schema = {
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"description": "POST schema for getting organisation",
|
|
"type": "object",
|
|
"properties": {
|
|
"colour": {"type": ["string", "null"]},
|
|
"name": {"type": ["string", "null"]},
|
|
"logo": {"type": ["string", "null"]}
|
|
},
|
|
"required": []
|
|
}
|