* Page unique_cross_model_slug seems misconfigured * Update validator test * More verbose invalid attribute message * Try dynamic model/attribute registration * Rubocop * Use the cross-model-slug existence check * Register with the dynamic cross-model-slug checker * Cleanup * Add missing keys to fr * Update format regex * Adjust validation: always presence, unique if changed * Tests can create reserved-word pages when they need to * Slugs can be mixed case? * Case-sensitive is better, actually * Refactor to use CrossModel check * Refactor, rename for clarity * Refactor, avoid mocking oneself * Refactor, injectable everything * Add reservedword check to extracted exists? checker * Move to concerns * Without dynamic registration * extend when needed * Cleanup comments, remove registration references --------- Co-authored-by: Goran <gorang.pub@gmail.com>
19 lines
689 B
YAML
19 lines
689 B
YAML
---
|
|
en:
|
|
validators:
|
|
bytesize_validator:
|
|
non_negative: ":maximum must be a non-negative Integer"
|
|
color_contrast_validator:
|
|
must_be_darker: must be darker for accessibility
|
|
emoji_only_validator:
|
|
invalid_emoji: contains non-emoji characters or invalid emoji
|
|
existing_published_article_id_validator:
|
|
default: must be a valid published Article identifier
|
|
profile_validator:
|
|
bio_too_long: Bio is too long
|
|
cross_model_slug_validator:
|
|
is_taken: has already been taken
|
|
is_invalid: is invalid
|
|
is_reserved: is reserved
|
|
valid_domain_csv_validator:
|
|
invalid_list_format: must be a comma-separated list of valid domains
|