config/errors.yml in dry-schema-0.4.0 vs config/errors.yml in dry-schema-0.5.0
- old
+ new
@@ -1,8 +1,9 @@
en:
dry_schema:
or: "or"
+
errors:
array?: "must be an array"
empty?: "must be empty"
@@ -10,10 +11,11 @@
excluded_from?:
arg:
default: "must not be one of: %{list}"
range: "must not be one of: %{list_left} - %{list_right}"
+
exclusion?: "must not be one of: %{list}"
eql?: "must be equal to %{left}"
not_eql?: "must not be equal to %{left}"
@@ -36,10 +38,11 @@
included_in?:
arg:
default: "must be one of: %{list}"
range: "must be one of: %{list_left} - %{list_right}"
+
inclusion?: "must be one of: %{list}"
includes?: "must include %{value}"
bool?: "must be boolean"
@@ -86,7 +89,8 @@
value:
string:
arg:
default: "length must be %{size}"
range: "length must be within %{size_left} - %{size_right}"
+
not:
empty?: "cannot be empty"