config/errors.yml in dry-schema-1.3.1 vs config/errors.yml in dry-schema-1.3.2
- old
+ new
@@ -71,12 +71,16 @@
lteq?: "must be less than or equal to %{num}"
max_size?: "size cannot be greater than %{num}"
+ max_bytesize?: "bytesize cannot be greater than %{num}"
+
min_size?: "size cannot be less than %{num}"
+ min_bytesize?: "bytesize cannot be less than %{num}"
+
nil?: "cannot be defined"
str?: "must be a string"
type?: "must be %{type}"
@@ -89,8 +93,13 @@
value:
string:
arg:
default: "length must be %{size}"
range: "length must be within %{size_left} - %{size_right}"
+
+ bytesize?:
+ arg:
+ default: "must be %{size} bytes long"
+ range: "must be within %{size_left} - %{size_right} bytes long"
not:
empty?: "cannot be empty"