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
|
@ -99,12 +99,13 @@ class UserCard(ApiResource):
|
|||
'id': 'UserCard',
|
||||
'type': 'object',
|
||||
'description': 'Description of a user card',
|
||||
'required': True,
|
||||
'required': [
|
||||
'token',
|
||||
],
|
||||
'properties': {
|
||||
'token': {
|
||||
'type': 'string',
|
||||
'description': 'Stripe token that is generated by stripe checkout.js',
|
||||
'required': True,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -137,12 +138,13 @@ class OrganizationCard(ApiResource):
|
|||
'id': 'OrgCard',
|
||||
'type': 'object',
|
||||
'description': 'Description of a user card',
|
||||
'required': True,
|
||||
'required': [
|
||||
'token',
|
||||
],
|
||||
'properties': {
|
||||
'token': {
|
||||
'type': 'string',
|
||||
'description': 'Stripe token that is generated by stripe checkout.js',
|
||||
'required': True,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -182,7 +184,9 @@ class UserPlan(ApiResource):
|
|||
'id': 'UserSubscription',
|
||||
'type': 'object',
|
||||
'description': 'Description of a user card',
|
||||
'required': True,
|
||||
'required': [
|
||||
'plan',
|
||||
],
|
||||
'properties': {
|
||||
'token': {
|
||||
'type': 'string',
|
||||
|
@ -191,7 +195,6 @@ class UserPlan(ApiResource):
|
|||
'plan': {
|
||||
'type': 'string',
|
||||
'description': 'Plan name to which the user wants to subscribe',
|
||||
'required': True,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -235,7 +238,9 @@ class OrganizationPlan(ApiResource):
|
|||
'id': 'OrgSubscription',
|
||||
'type': 'object',
|
||||
'description': 'Description of a user card',
|
||||
'required': True,
|
||||
'required': [
|
||||
'plan',
|
||||
],
|
||||
'properties': {
|
||||
'token': {
|
||||
'type': 'string',
|
||||
|
@ -244,7 +249,6 @@ class OrganizationPlan(ApiResource):
|
|||
'plan': {
|
||||
'type': 'string',
|
||||
'description': 'Plan name to which the user wants to subscribe',
|
||||
'required': True,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Reference in a new issue