Convert old style jsonschema required params to new style.
This commit is contained in:
parent
5bb4008880
commit
ddf5f2053c
11 changed files with 79 additions and 59 deletions
|
@ -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',
|
||||
|
|
Reference in a new issue