From d94792dd65de3b5557e7e13e6020ac8ab8f0c91b Mon Sep 17 00:00:00 2001 From: chesseed <9110170+chesseed@users.noreply.github.com> Date: Thu, 9 Oct 2025 21:26:30 +0200 Subject: [PATCH] fix swagger errors --- api/publish.go | 1 - api/repos.go | 2 +- api/snapshot.go | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/publish.go b/api/publish.go index 1a2b5287..633fdc34 100644 --- a/api/publish.go +++ b/api/publish.go @@ -393,7 +393,6 @@ type publishedRepoUpdateSwitchParams struct { // @Description // @Description See also: `aptly publish update` / `aptly publish switch` // @Tags Publish -// @Produce json // @Param prefix path string true "publishing prefix" // @Param distribution path string true "distribution name" // @Param _async query bool false "Run in background and return task object" diff --git a/api/repos.go b/api/repos.go index 17b8a454..0a3cc43e 100644 --- a/api/repos.go +++ b/api/repos.go @@ -455,7 +455,7 @@ func apiReposPackagesDelete(c *gin.Context) { // @Tags Repos // @Param name path string true "Repository name" // @Param dir path string true "Directory of packages" -// @Param file path string false "Filename (optional)" +// @Param file path string true "Filename (optional)" // @Param _async query bool false "Run in background and return task object" // @Produce json // @Success 200 {string} string "OK" diff --git a/api/snapshot.go b/api/snapshot.go index be729717..24f276c5 100644 --- a/api/snapshot.go +++ b/api/snapshot.go @@ -217,10 +217,9 @@ type snapshotsCreateFromRepositoryParams struct { // @Summary Snapshot Repository // @Description **Create a snapshot of a repository by name** // @Tags Snapshots -// @Param name path string true "Repository name" // @Consume json // @Param request body snapshotsCreateFromRepositoryParams true "Parameters" -// @Param name path string true "Name of the snapshot" +// @Param name path string true "Repository name" // @Param _async query bool false "Run in background and return task object" // @Produce json // @Success 201 {object} deb.Snapshot "Created snapshot object"