Skip to content

Commit

Permalink
fix: invalid min value "1" on optional param
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal-Delange committed Dec 9, 2024
1 parent 3db750f commit 3621d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dto/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type PaginationAndSorting struct {
OffsetId string `form:"offset_id"`
Sorting string `form:"sorting"`
Order string `form:"order"`
Limit int `form:"limit" binding:"min=1,max=100"`
Limit int `form:"limit" binding:"max=100"`
}

func AdaptPaginationAndSorting(input PaginationAndSorting) models.PaginationAndSorting {
Expand Down

0 comments on commit 3621d76

Please sign in to comment.