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
|
@ -67,22 +67,23 @@ class User(ApiResource):
|
|||
'id': 'NewUser',
|
||||
'type': 'object',
|
||||
'description': 'Fields which must be specified for a new user.',
|
||||
'required': True,
|
||||
'required': [
|
||||
'username',
|
||||
'password',
|
||||
'email',
|
||||
],
|
||||
'properties': {
|
||||
'username': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s username',
|
||||
'required': True,
|
||||
},
|
||||
'password': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s password',
|
||||
'required': True,
|
||||
},
|
||||
'email': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s email address',
|
||||
'required': True,
|
||||
},
|
||||
}
|
||||
},
|
||||
|
@ -90,7 +91,6 @@ class User(ApiResource):
|
|||
'id': 'UpdateUser',
|
||||
'type': 'object',
|
||||
'description': 'Fields which can be updated in a user.',
|
||||
'required': True,
|
||||
'properties': {
|
||||
'password': {
|
||||
'type': 'string',
|
||||
|
@ -225,22 +225,23 @@ class ConvertToOrganization(ApiResource):
|
|||
'id': 'ConvertUser',
|
||||
'type': 'object',
|
||||
'description': 'Information required to convert a user to an organization.',
|
||||
'required': True,
|
||||
'required': [
|
||||
'username',
|
||||
'password',
|
||||
'email',
|
||||
],
|
||||
'properties': {
|
||||
'username': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s username',
|
||||
'required': True,
|
||||
},
|
||||
'password': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s password',
|
||||
'required': True,
|
||||
},
|
||||
'email': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s email address',
|
||||
'required': True,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -286,17 +287,18 @@ class Signin(ApiResource):
|
|||
'id': 'SigninUser',
|
||||
'type': 'object',
|
||||
'description': 'Information required to sign in a user.',
|
||||
'required': True,
|
||||
'required': [
|
||||
'username',
|
||||
'password',
|
||||
],
|
||||
'properties': {
|
||||
'username': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s username',
|
||||
'required': True,
|
||||
},
|
||||
'password': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s password',
|
||||
'required': True,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -337,12 +339,13 @@ class Recovery(ApiResource):
|
|||
'id': 'RequestRecovery',
|
||||
'type': 'object',
|
||||
'description': 'Information required to sign in a user.',
|
||||
'required': True,
|
||||
'required': [
|
||||
'email',
|
||||
],
|
||||
'properties': {
|
||||
'email': {
|
||||
'type': 'string',
|
||||
'description': 'The user\'s email address',
|
||||
'required': True,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Reference in a new issue