mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add property value validation to ThemeSettingsObjectValidator (#25718)
Why this change? This change adds property value validation to `ThemeSettingsObjectValidator` for the following types: "string", "integer", "float", "boolean", "enum". Note that this class is not being used anywhere yet and is still in development.
This commit is contained in:
committed by
GitHub
parent
bdd91b3928
commit
a64f558f32
@@ -136,6 +136,12 @@ en:
|
||||
string_value_not_valid_max: "It must be at most %{max} characters long."
|
||||
objects:
|
||||
required: "must be present"
|
||||
invalid_type: "%{type} is not a valid type"
|
||||
not_valid_string_value: "must be a string"
|
||||
not_valid_integer_value: "must be an integer"
|
||||
not_valid_float_value: "must be a float"
|
||||
not_valid_boolean_value: "must be a boolean"
|
||||
not_valid_enum_value: "must be one of the following: %{choices}"
|
||||
locale_errors:
|
||||
top_level_locale: "The top level key in a locale file must match the locale name"
|
||||
invalid_yaml: "Translation YAML invalid"
|
||||
|
||||
Reference in New Issue
Block a user