mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-23 15:56:45 -04:00
Refactor organisation rest to remove marshmallow
This commit is contained in:
11
app/organisation/organisation_schema.py
Normal file
11
app/organisation/organisation_schema.py
Normal file
@@ -0,0 +1,11 @@
|
||||
post_organisation_schema = {
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"description": "POST schema for getting organisation",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"colour": {"type": ["string", "null"], "format": "string"},
|
||||
"name": {"type": ["string", "null"], "minimum": 1},
|
||||
"logo": {"type": ["string", "null"], "minimum": 1}
|
||||
},
|
||||
"required": ["logo"]
|
||||
}
|
||||
Reference in New Issue
Block a user