Skip to content

Commit ac9b1ca

Browse files
committed
chore: change date to dateTime in schema(zod)
1 parent df67be5 commit ac9b1ca

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/server/api/schema/option.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,29 +52,29 @@ export const OptionSchema = z
5252
example: 4,
5353
}),
5454

55-
issueDate: z.string().date().openapi({
55+
issueDate: z.string().datetime().openapi({
5656
description: "Issue Date",
5757
example: "2024-01-01",
5858
}),
5959

60-
expirationDate: z.string().date().openapi({
60+
expirationDate: z.string().datetime().openapi({
6161
description: "Expiration Date",
62-
example: "2028-01-01",
62+
example: "2024-01-01T00:00:00.000Z",
6363
}),
6464

65-
vestingStartDate: z.string().date().openapi({
65+
vestingStartDate: z.string().datetime().openapi({
6666
description: "Vesting Start Date",
67-
example: "2024-01-01",
67+
example: "2024-01-01T00:00:00.000Z",
6868
}),
6969

70-
boardApprovalDate: z.string().date().openapi({
70+
boardApprovalDate: z.string().datetime().openapi({
7171
description: "Board Approval Date",
72-
example: "2024-01-01",
72+
example: "2024-01-01T00:00:00.000Z",
7373
}),
7474

75-
rule144Date: z.string().date().openapi({
75+
rule144Date: z.string().datetime().openapi({
7676
description: "Rule 144 Date",
77-
example: "2024-01-01",
77+
example: "2024-01-01T00:00:00.000Z",
7878
}),
7979

8080
stakeholderId: z.string().openapi({

0 commit comments

Comments
 (0)