File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ func apiReposCreate(c *gin.Context) {
196196
197197type 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 ()
Original file line number Diff line number Diff line change 33
44class 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 ):
You can’t perform that action at this time.
0 commit comments