Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Aug 16, 2024
1 parent 8f54416 commit 218b11f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions rfcs/v4-issue-formats/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,33 +43,28 @@ export interface ZodInvalidDateIssue extends ZodIssueBase {
exclusive?: boolean;
}

type $StringFormats =
// there will be some additions here
export type StringValidation =
| "email"
| "url"
| "jwt"
| "json"
| "emoji"
| "uuid"
| "nanoid"
| "guid"
| "regex"
| "cuid"
| "cuid2"
| "ulid"
| "xid"
| "ksuid"
| "datetime"
| "date"
| "time"
| "duration"
| "ip"
| "base64"
| "e164";
| "base64";

export interface ZodInvalidStringIssue extends ZodIssueBase {
code: typeof ZodIssueCode.invalid_string;
subcode: "too_small" | "too_big" | "invalid_format";
format?: $StringFormats;
format?: StringValidation;
pattern?: string;
startsWith?: string;
endsWith?: string;
Expand Down

0 comments on commit 218b11f

Please sign in to comment.