diff --git a/vercel/validator_float64_greater_than.go b/vercel/validator_float64_greater_than.go index 47c12aa2..cc843513 100644 --- a/vercel/validator_float64_greater_than.go +++ b/vercel/validator_float64_greater_than.go @@ -18,10 +18,10 @@ type validatorFloat64GreaterThan struct { } func (v validatorFloat64GreaterThan) Description(ctx context.Context) string { - return fmt.Sprintf("Value must be greater than %.2f", v.Min) + return fmt.Sprintf("Value must be equal to or greater than %.2f", v.Min) } func (v validatorFloat64GreaterThan) MarkdownDescription(ctx context.Context) string { - return fmt.Sprintf("Value must be greater than `%.2f`", v.Min) + return fmt.Sprintf("Value must be equal to or greater than `%.2f`", v.Min) } func (v validatorFloat64GreaterThan) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response) { diff --git a/vercel/validator_float64_less_than.go b/vercel/validator_float64_less_than.go index 4183d65e..5a568fa9 100644 --- a/vercel/validator_float64_less_than.go +++ b/vercel/validator_float64_less_than.go @@ -18,10 +18,10 @@ type validatorFloat64LessThan struct { } func (v validatorFloat64LessThan) Description(ctx context.Context) string { - return fmt.Sprintf("Value must be less than %.2f", v.Max) + return fmt.Sprintf("Value must be equal to or less than %.2f", v.Max) } func (v validatorFloat64LessThan) MarkdownDescription(ctx context.Context) string { - return fmt.Sprintf("Value must be less than `%.2f`", v.Max) + return fmt.Sprintf("Value must be equal to or less than `%.2f`", v.Max) } func (v validatorFloat64LessThan) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response) { diff --git a/vercel/validator_int64_greater_than.go b/vercel/validator_int64_greater_than.go index 51fa5db4..51e99616 100644 --- a/vercel/validator_int64_greater_than.go +++ b/vercel/validator_int64_greater_than.go @@ -18,10 +18,10 @@ type validatorInt64GreaterThan struct { } func (v validatorInt64GreaterThan) Description(ctx context.Context) string { - return fmt.Sprintf("Value must be greater than %d", v.Min) + return fmt.Sprintf("Value must be equal to or greater than %d", v.Min) } func (v validatorInt64GreaterThan) MarkdownDescription(ctx context.Context) string { - return fmt.Sprintf("Value must be greater than `%d`", v.Min) + return fmt.Sprintf("Value must be equal to or greater than `%d`", v.Min) } func (v validatorInt64GreaterThan) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response) { diff --git a/vercel/validator_int64_less_than.go b/vercel/validator_int64_less_than.go index 5419f27b..7d51c847 100644 --- a/vercel/validator_int64_less_than.go +++ b/vercel/validator_int64_less_than.go @@ -18,10 +18,10 @@ type validatorInt64LessThan struct { } func (v validatorInt64LessThan) Description(ctx context.Context) string { - return fmt.Sprintf("Value must be less than %d", v.Max) + return fmt.Sprintf("Value must be equal to or less than %d", v.Max) } func (v validatorInt64LessThan) MarkdownDescription(ctx context.Context) string { - return fmt.Sprintf("Value must be less than `%d`", v.Max) + return fmt.Sprintf("Value must be equal to or less than `%d`", v.Max) } func (v validatorInt64LessThan) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response) { diff --git a/vercel/validator_map_items_min_count.go b/vercel/validator_map_items_min_count.go index be3f1b5b..a6c68dd8 100644 --- a/vercel/validator_map_items_min_count.go +++ b/vercel/validator_map_items_min_count.go @@ -19,10 +19,10 @@ type validatorMapItemsMinCount struct { } func (v validatorMapItemsMinCount) Description(ctx context.Context) string { - return fmt.Sprintf("Map must contain at least %d item(s)", v.Min) + return fmt.Sprintf("Map must contain %d or more item(s)", v.Min) } func (v validatorMapItemsMinCount) MarkdownDescription(ctx context.Context) string { - return fmt.Sprintf("Map must contain at least `%d` item(s)", v.Min) + return fmt.Sprintf("Map must contain %d or more item(s)", v.Min) } func (v validatorMapItemsMinCount) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse) { diff --git a/vercel/validator_map_max_count.go b/vercel/validator_map_max_count.go index c2e5f709..4529bd72 100644 --- a/vercel/validator_map_max_count.go +++ b/vercel/validator_map_max_count.go @@ -20,10 +20,10 @@ type validatorMapMaxCount struct { } func (v validatorMapMaxCount) Description(ctx context.Context) string { - return fmt.Sprintf("Map must contain fewer than %d items", v.Max) + return fmt.Sprintf("Map must contain %d or fewer items", v.Max) } func (v validatorMapMaxCount) MarkdownDescription(ctx context.Context) string { - return fmt.Sprintf("Map must contain fewer than %d items", v.Max) + return fmt.Sprintf("Map must contain %d or fewer items", v.Max) } func (v validatorMapMaxCount) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse) { diff --git a/vercel/validator_string_length_greater_than.go b/vercel/validator_string_length_greater_than.go index dfbe3ab7..2bee1eb7 100644 --- a/vercel/validator_string_length_greater_than.go +++ b/vercel/validator_string_length_greater_than.go @@ -20,11 +20,11 @@ type validatorStringLengthGreaterThan struct { } func (v validatorStringLengthGreaterThan) Description(ctx context.Context) string { - return fmt.Sprintf("String length must be greater than %d", v.Min) + return fmt.Sprintf("String length must be equal to or greater than %d", v.Min) } func (v validatorStringLengthGreaterThan) MarkdownDescription(ctx context.Context) string { - return fmt.Sprintf("String length must be greater than %d", v.Min) + return fmt.Sprintf("String length must be equal to or greater than %d", v.Min) } func (v validatorStringLengthGreaterThan) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse) { diff --git a/vercel/validator_string_set_min_count.go b/vercel/validator_string_set_min_count.go index 2fd874a1..d2eecbaf 100644 --- a/vercel/validator_string_set_min_count.go +++ b/vercel/validator_string_set_min_count.go @@ -18,10 +18,10 @@ type validatorStringSetMinCount struct { } func (v validatorStringSetMinCount) Description(ctx context.Context) string { - return fmt.Sprintf("Set must contain at least %d items", v.Min) + return fmt.Sprintf("Set must contain %d or more items", v.Min) } func (v validatorStringSetMinCount) MarkdownDescription(ctx context.Context) string { - return fmt.Sprintf("Set must contain at least %d items", v.Min) + return fmt.Sprintf("Set must contain %d or more items", v.Min) } func (v validatorStringSetMinCount) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse) {