diff --git a/api/snapshot.go b/api/snapshot.go index 54433096..7e625ec9 100644 --- a/api/snapshot.go +++ b/api/snapshot.go @@ -187,9 +187,9 @@ func apiSnapshotsCreate(c *gin.Context) { }) } -type snapshotRepositoryParams struct { - Name string `binding:"required"` - Description string +type snapshotRepositoryParams struct { + Name string `binding:"required"` + Description string } // @Summary Snapshot Repository @@ -208,7 +208,7 @@ func apiSnapshotsCreateFromRepository(c *gin.Context) { err error repo *deb.LocalRepo snapshot *deb.Snapshot - b snapshotRepositoryParams + b snapshotRepositoryParams ) if c.Bind(&b) != nil { diff --git a/docs/index.go b/docs/index.go index 8350449a..ca4c914a 100644 --- a/docs/index.go +++ b/docs/index.go @@ -1,8 +1,9 @@ package docs import ( - _ "embed" - _ "github.com/swaggo/swag" // make sure swag is in go.mod + _ "embed" // embed html below + + _ "github.com/swaggo/swag" // make sure swag is in go.mod ) //go:embed docs.html