mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
Merge pull request #1714 from calumapplepie/patch-1
Update profile.ts to add default values
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const profileSchema = z.object({
|
||||
"First Name": z.string(),
|
||||
"Last Name": z.string(),
|
||||
"First Name": z.string().default("John"),
|
||||
"Last Name": z.string().default("Doe"),
|
||||
"Maiden Name": z.string().optional(),
|
||||
Address: z.string(),
|
||||
"Birth Date": z.string(),
|
||||
Headline: z.string(),
|
||||
Summary: z.string(),
|
||||
Industry: z.string(),
|
||||
Address: z.string().default("111 Example Street"),
|
||||
"Birth Date": z.string().default("January 1st, 1970"),
|
||||
Headline: z.string().default("An Awesome Person"),
|
||||
Summary: z.string().default("Look at this awesome person"),
|
||||
Industry: z.string().default("Resume Building"),
|
||||
"Zip Code": z.string().optional(),
|
||||
"Geo Location": z.string(),
|
||||
"Twitter Handles": z.string(),
|
||||
Websites: z.string(),
|
||||
"Geo Location": z.string().default("Somewhere"),
|
||||
"Twitter Handles": z.string().default("@test"),
|
||||
Websites: z.string().default("example.com"),
|
||||
"Instant Messengers": z.string().optional(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user