mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 16:22:59 +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";
|
import { z } from "zod";
|
||||||
|
|
||||||
export const profileSchema = z.object({
|
export const profileSchema = z.object({
|
||||||
"First Name": z.string(),
|
"First Name": z.string().default("John"),
|
||||||
"Last Name": z.string(),
|
"Last Name": z.string().default("Doe"),
|
||||||
"Maiden Name": z.string().optional(),
|
"Maiden Name": z.string().optional(),
|
||||||
Address: z.string(),
|
Address: z.string().default("111 Example Street"),
|
||||||
"Birth Date": z.string(),
|
"Birth Date": z.string().default("January 1st, 1970"),
|
||||||
Headline: z.string(),
|
Headline: z.string().default("An Awesome Person"),
|
||||||
Summary: z.string(),
|
Summary: z.string().default("Look at this awesome person"),
|
||||||
Industry: z.string(),
|
Industry: z.string().default("Resume Building"),
|
||||||
"Zip Code": z.string().optional(),
|
"Zip Code": z.string().optional(),
|
||||||
"Geo Location": z.string(),
|
"Geo Location": z.string().default("Somewhere"),
|
||||||
"Twitter Handles": z.string(),
|
"Twitter Handles": z.string().default("@test"),
|
||||||
Websites: z.string(),
|
Websites: z.string().default("example.com"),
|
||||||
"Instant Messengers": z.string().optional(),
|
"Instant Messengers": z.string().optional(),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user