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
|
@ -27,12 +27,14 @@ class RepositoryList(ApiResource):
|
|||
'id': 'NewRepo',
|
||||
'type': 'object',
|
||||
'description': 'Description of a new repository',
|
||||
'required': True,
|
||||
'required': [
|
||||
'repository',
|
||||
'visibility',
|
||||
],
|
||||
'properties': {
|
||||
'repository': {
|
||||
'type': 'string',
|
||||
'description': 'Repository name',
|
||||
'required': True,
|
||||
},
|
||||
'visibility': {
|
||||
'type': 'string',
|
||||
|
@ -41,7 +43,6 @@ class RepositoryList(ApiResource):
|
|||
'public',
|
||||
'private',
|
||||
],
|
||||
'required': True,
|
||||
},
|
||||
'namespace': {
|
||||
'type': 'string',
|
||||
|
@ -155,12 +156,13 @@ class Repository(RepositoryParamResource):
|
|||
'id': 'RepoUpdate',
|
||||
'type': 'object',
|
||||
'description': 'Fields which can be updated in a repository.',
|
||||
'required': True,
|
||||
'required': [
|
||||
'description',
|
||||
],
|
||||
'properties': {
|
||||
'description': {
|
||||
'type': 'string',
|
||||
'description': 'Markdown encoded description for the repository',
|
||||
'required': True,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -250,7 +252,9 @@ class RepositoryVisibility(RepositoryParamResource):
|
|||
'id': 'ChangeVisibility',
|
||||
'type': 'object',
|
||||
'description': 'Change the visibility for the repository.',
|
||||
'required': True,
|
||||
'required': [
|
||||
'visibility',
|
||||
],
|
||||
'properties': {
|
||||
'visibility': {
|
||||
'type': 'string',
|
||||
|
@ -259,7 +263,6 @@ class RepositoryVisibility(RepositoryParamResource):
|
|||
'public',
|
||||
'private',
|
||||
],
|
||||
'required': True,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue