Skip to content

Commit 4526d6d

Browse files
authored
Merge pull request #1498 from chesseed/fix/swagger-errors
Fix Swagger errors
2 parents d3bed78 + 02d2ba2 commit 4526d6d

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎api/publish.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ type publishedRepoUpdateSwitchParams struct {
393393
// @Description
394394
// @Description See also: `aptly publish update` / `aptly publish switch`
395395
// @Tags Publish
396-
// @Produce json
397396
// @Param prefix path string true "publishing prefix"
398397
// @Param distribution path string true "distribution name"
399398
// @Param _async query bool false "Run in background and return task object"

‎api/repos.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ func apiReposPackagesDelete(c *gin.Context) {
455455
// @Tags Repos
456456
// @Param name path string true "Repository name"
457457
// @Param dir path string true "Directory of packages"
458-
// @Param file path string false "Filename (optional)"
458+
// @Param file path string true "Filename"
459459
// @Param _async query bool false "Run in background and return task object"
460460
// @Produce json
461461
// @Success 200 {string} string "OK"

‎api/snapshot.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,9 @@ type snapshotsCreateFromRepositoryParams struct {
217217
// @Summary Snapshot Repository
218218
// @Description **Create a snapshot of a repository by name**
219219
// @Tags Snapshots
220-
// @Param name path string true "Repository name"
221220
// @Consume json
222221
// @Param request body snapshotsCreateFromRepositoryParams true "Parameters"
223-
// @Param name path string true "Name of the snapshot"
222+
// @Param name path string true "Repository name"
224223
// @Param _async query bool false "Run in background and return task object"
225224
// @Produce json
226225
// @Success 201 {object} deb.Snapshot "Created snapshot object"

0 commit comments

Comments
 (0)