Skip to content

Commit 6f92c51

Browse files
authored
Merge pull request #1593 from aptly-dev/fix/repo-edit-name-optional
Fix/repo edit name optional
2 parents c0c4bc3 + cfa79a0 commit 6f92c51

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

api/repos.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func apiReposCreate(c *gin.Context) {
196196

197197
type reposEditParams struct {
198198
// Name of repository to modify
199-
Name *string `binding:"required" json:"Name" example:"repo1"`
199+
Name *string ` json:"Name" example:"new-repo-name"`
200200
// Change Comment of repository
201201
Comment *string ` json:"Comment" example:"example repo"`
202202
// Change Default Distribution for publishing
@@ -208,7 +208,7 @@ type reposEditParams struct {
208208
// @Summary Update Repository
209209
// @Description **Update local repository meta information**
210210
// @Tags Repos
211-
// @Param name path string true "Repository name"
211+
// @Param name path string true "Repository name to modify"
212212
// @Consume json
213213
// @Param request body reposEditParams true "Parameters"
214214
// @Produce json
@@ -221,7 +221,6 @@ func apiReposEdit(c *gin.Context) {
221221
if c.Bind(&b) != nil {
222222
return
223223
}
224-
225224
// Load shallowly for 404 check and resource key.
226225
// Mutation and duplicate check happen inside the task for atomicity.
227226
collectionFactory := context.NewCollectionFactory()

system/testout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class TestOut:
55
def __init__(self):
6-
self.tmp_file = tempfile.NamedTemporaryFile(delete=False)
6+
self.tmp_file = tempfile.NamedTemporaryFile(delete=True)
77
self.read_pos = 0
88

99
def fileno(self):

0 commit comments

Comments
 (0)