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

@ -27,12 +27,13 @@ class RepositoryTokenList(RepositoryParamResource):
'id': 'NewToken',
'type': 'object',
'description': 'Description of a new token.',
'required': True,
'required':[
'friendlyName',
],
'properties': {
'friendlyName': {
'type': 'string',
'description': 'Friendly name to help identify the token',
'required': True,
},
},
},
@ -73,7 +74,9 @@ class RepositoryToken(RepositoryParamResource):
'id': 'TokenPermission',
'type': 'object',
'description': 'Description of a token permission',
'required': True,
'required': [
'role',
],
'properties': {
'role': {
'type': 'string',
@ -83,7 +86,6 @@ class RepositoryToken(RepositoryParamResource):
'write',
'admin',
],
'required': True,
},
},
},