Convert old style jsonschema required params to new style.

This commit is contained in:
jakedt 2014-03-17 12:25:41 -04:00
parent 5bb4008880
commit ddf5f2053c
11 changed files with 79 additions and 59 deletions

View file

@ -46,17 +46,18 @@ class OrganizationList(ApiResource):
'id': 'NewOrg',
'type': 'object',
'description': 'Description of a new organization.',
'required': True,
'required': [
'name',
'email',
],
'properties': {
'name': {
'type': 'string',
'description': 'Organization username',
'required': True,
},
'email': {
'type': 'string',
'description': 'Organization contact email',
'required': True,
},
},
},
@ -100,7 +101,6 @@ class Organization(ApiResource):
'id': 'UpdateOrg',
'type': 'object',
'description': 'Description of updates for an existing organization',
'required': True,
'properties': {
'email': {
'type': 'string',