WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 768a4ef

Browse files
committed
Fix endDate optional without nullable
1 parent 0d9249a commit 768a4ef

File tree

1 file changed

+2
-2
lines changed
  • workspaces/firebase-functions/src/schema

1 file changed

+2
-2
lines changed

workspaces/firebase-functions/src/schema/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const experienceSchema = z.object({
3333
company: z.string(),
3434
position: z.string(),
3535
startDate: z.string(),
36-
endDate: z.string().optional(),
36+
endDate: z.string().nullable().optional(),
3737
description: descriptionSchema,
3838
})
3939

@@ -62,4 +62,4 @@ export const generateSchema = z.object({
6262
publications: z.array(publicationSchema),
6363
conferences: z.array(conferenceSchema),
6464
}),
65-
})
65+
})

0 commit comments

Comments
 (0)