feat: introduce reusable Zod validator registry with comprehensive atomic schema modifiers and localization support
This commit is contained in:
@@ -2,6 +2,16 @@
|
||||
"validation": {
|
||||
"required": "{{field}} is required",
|
||||
"min_length": "{{field}} must be at least {{min}} characters",
|
||||
"invalid_email": "Invalid email format"
|
||||
"min_len": "{{field}} must be at least {{min}} characters",
|
||||
"max_len": "{{field}} must be at most {{max}} characters",
|
||||
"range_len": "{{field}} must be between {{min}} and {{max}} characters",
|
||||
"min_val": "{{field}} must be greater than or equal to {{min}}",
|
||||
"max_val": "{{field}} must be less than or equal to {{max}}",
|
||||
"range_val": "{{field}} must be between {{min}} and {{max}}",
|
||||
"must_be_positive": "{{field}} must be a positive number",
|
||||
"invalid_email": "Invalid email format",
|
||||
"invalid_phone": "Invalid phone number format",
|
||||
"invalid_password_simple": "Password must be at least {{min}} characters",
|
||||
"invalid_password_complex": "Password must contain at least 1 uppercase, 1 lowercase, 1 number, and 1 special character"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user