This commit is contained in:
André Roth
2024-11-03 14:13:57 +01:00
parent 8f8de4bd29
commit 2171c05ef8
2 changed files with 7 additions and 6 deletions

View File

@@ -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 {