Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
fix: error message for MinItems validator (#389)
Browse files Browse the repository at this point in the history
Signed-off-by: Mostafa Hussein <mostafa.hussein91@gmail.com>
  • Loading branch information
mostafahussein committed Nov 8, 2021
1 parent 13bc976 commit a8912d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate.go
Expand Up @@ -87,7 +87,7 @@ func MinItems(numberItems int) Validator {
// if the list is shorter than the given value
if len(list) < numberItems {
// yell loudly
return fmt.Errorf("value is too long. Min items is %v", numberItems)
return fmt.Errorf("value is too short. Min items is %v", numberItems)
}
} else {
// otherwise we cannot convert the value into a list of answer and cannot enforce length
Expand Down

0 comments on commit a8912d0

Please sign in to comment.