mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 06:52:06 -05:00
Add extra fields to create/update organisation
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from app.models import INVITED_USER_STATUS_TYPES
|
||||
from app.models import INVITED_USER_STATUS_TYPES, ORGANISATION_TYPES
|
||||
from app.schema_validation.definitions import uuid
|
||||
|
||||
post_create_organisation_schema = {
|
||||
@@ -7,9 +7,11 @@ post_create_organisation_schema = {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {"type": "string"},
|
||||
"active": {"type": ["boolean", "null"]}
|
||||
"active": {"type": ["boolean", "null"]},
|
||||
"crown": {"type": "boolean"},
|
||||
"organisation_type": {"enum": ORGANISATION_TYPES},
|
||||
},
|
||||
"required": ["name"]
|
||||
"required": ["name", "crown", "organisation_type"]
|
||||
}
|
||||
|
||||
post_update_organisation_schema = {
|
||||
@@ -18,7 +20,9 @@ post_update_organisation_schema = {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {"type": ["string", "null"]},
|
||||
"active": {"type": ["boolean", "null"]}
|
||||
"active": {"type": ["boolean", "null"]},
|
||||
"crown": {"type": ["boolean", "null"]},
|
||||
"organisation_type": {"enum": ORGANISATION_TYPES},
|
||||
},
|
||||
"required": []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user