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
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Reference in a new issue