Refactor organisation rest to remove marshmallow

This commit is contained in:
Ken Tsang
2017-07-07 10:00:38 +01:00
parent 12e6cd0a8f
commit b814c5ff26
5 changed files with 37 additions and 35 deletions

View 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"]
}