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

@ -47,12 +47,13 @@ class RepositoryBuildList(RepositoryParamResource):
'id': 'RepositoryBuildRequest',
'type': 'object',
'description': 'Description of a new repository build.',
'required': True,
'required': [
'file_id',
],
'properties': {
'file_id': {
'type': 'string',
'description': 'The file id that was generated when the build spec was uploaded',
'required': True,
},
'subdirectory': {
'type': 'string',
@ -160,12 +161,13 @@ class FileDropResource(ApiResource):
'id': 'FileDropRequest',
'type': 'object',
'description': 'Description of the file that the user wishes to upload.',
'required': True,
'required': [
'mimeType',
],
'properties': {
'mimeType': {
'type': 'string',
'description': 'Type of the file which is about to be uploaded',
'required': True,
},
},
},