Skip to content

Commit

Permalink
Merge pull request #1027 from susiyaki/fix/error-handling-document
Browse files Browse the repository at this point in the history
Fix ERROR_HANDLING.md typo
  • Loading branch information
colinhacks authored Mar 18, 2022
2 parents 4acff9c + 239df7a commit 96d3c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ERROR_HANDLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ _Every_ ZodIssue has these fields:
| ZodIssueCode.invalid_date | _no additional properties_ |
| ZodIssueCode.invalid_string | `validation: "url" \| "email" \| "uuid"`<br> Which built-in string validator failed |
| ZodIssueCode.too_small | `type: "string" \| "number" \| "array"` <br>The type of the data failing validation<br><br> `minimum: number` <br>The expected length/value.<br><br>`inclusive: boolean`<br>Whether the minimum is included in the range of acceptable values.<br> |
| ZodIssueCode.too_big | `type: "string" \| "number" \| "array"` <br>The type of the data failing validation<br><br> `maximum: number` <br>The expected length/value.<br><br>`inclusive: boolean`<br>Whether the minimum is included in the range of acceptable values.<br> |
| ZodIssueCode.too_big | `type: "string" \| "number" \| "array"` <br>The type of the data failing validation<br><br> `maximum: number` <br>The expected length/value.<br><br>`inclusive: boolean`<br>Whether the maximum is included in the range of acceptable values.<br> |
| ZodIssueCode.not_multiple_of | `multipleOf: number` <br>The value the number should be a multiple of.<br> |
| ZodIssueCode.custom | `params: { [k: string]: any }` <br> This is the error code throw by refinements (unless you are using `superRefine` in which case it's possible to throw issues of any `code`). You are able to pass in a `params` object here that is available in your custom error maps (see [ZodErrorMap](#Customizing-errors-with-ZodErrorMap) below for details on error maps) |

Expand Down

0 comments on commit 96d3c34

Please sign in to comment.