♻️ Address pull request feedback
This commit is contained in:
@@ -7,11 +7,11 @@
|
|||||||
"endsWith": "This field must end with {{endsWith}}",
|
"endsWith": "This field must end with {{endsWith}}",
|
||||||
"includes": "This field must include {{includes}}"
|
"includes": "This field must include {{includes}}"
|
||||||
},
|
},
|
||||||
"too_small": {
|
"tooSmall": {
|
||||||
"string": "This field must be at least {{minimum}} characters long",
|
"string": "This field must be at least {{minimum}} characters long",
|
||||||
"number": "This field must be greater than or equal to {{minimum}}"
|
"number": "This field must be greater than or equal to {{minimum}}"
|
||||||
},
|
},
|
||||||
"too_big": {
|
"tooBig": {
|
||||||
"string": "This field must be at most {{maximum}} characters long",
|
"string": "This field must be at most {{maximum}} characters long",
|
||||||
"number": "This field must be less than or equal to {{maximum}}"
|
"number": "This field must be less than or equal to {{maximum}}"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const handleTooSmallError = (issue: ZodTooSmallIssue, ctx: ErrorMapCtx) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
key: `errors.too_small.${issue.type}`,
|
key: `errors.tooSmall.${issue.type}`,
|
||||||
params: {
|
params: {
|
||||||
minimum: issue.minimum,
|
minimum: issue.minimum,
|
||||||
count: issue.minimum,
|
count: issue.minimum,
|
||||||
@@ -72,7 +72,7 @@ const handleTooBigError = (issue: ZodTooBigIssue, ctx: ErrorMapCtx) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
key: `errors.too_big.${issue.type}`,
|
key: `errors.tooBig.${issue.type}`,
|
||||||
params: {
|
params: {
|
||||||
maximum: issue.maximum,
|
maximum: issue.maximum,
|
||||||
count: issue.maximum,
|
count: issue.maximum,
|
||||||
|
|||||||
Reference in New Issue
Block a user