Skip to content

Commit

Permalink
Add validation for limit
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Bersani <[email protected]>
  • Loading branch information
B3rs committed Jan 24, 2024
1 parent 6d032a2 commit ab5d5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type GitlabConfig struct {
URL string `validate:"required"`
Token string
Topics []string
Limit int
Limit int `validate:"lte=50000"`
Search string
BasePath string `yaml:"base-path"`
}
Expand Down

0 comments on commit ab5d5a7

Please sign in to comment.