Skip to content

Commit

Permalink
🚨 Fix(#333): μŠ€ν…Œλ”” μˆ˜μ • μ‹œ ν¬μ§€μ…˜κ³Ό μŠ€νƒμ„ μ„ νƒν•˜μ§€ μ•Šμ€ μ±„λ‘œ μˆ˜μ •μ΄ λ˜λŠ” ν˜„μƒ μˆ˜μ •
Browse files Browse the repository at this point in the history
🚨 Fix(#333): μŠ€ν…Œλ”” μˆ˜μ • μ‹œ ν¬μ§€μ…˜κ³Ό μŠ€νƒμ„ μ„ νƒν•˜μ§€ μ•Šμ€ μ±„λ‘œ μˆ˜μ •μ΄ λ˜λŠ” ν˜„μƒ μˆ˜μ •
  • Loading branch information
sscoderati authored Dec 19, 2023
2 parents 899a497 + b46c6ff commit d4c77c2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/schemas/steadySchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,16 @@ export const SteadySchema = z.object({
content: z.string({
required_error: "μŠ€ν…Œλ””μ˜ λͺ¨μ§‘κΈ€ λ‚΄μš©μ„ μž…λ ₯ν•΄μ£Όμ„Έμš”.",
}),
positions: z.array(number(), {
required_error: "μŠ€ν…Œλ””μ˜ λͺ¨μ§‘ λΆ„μ•Όλ₯Ό μ„ νƒν•΄μ£Όμ„Έμš”.",
}),
stacks: z.array(number(), {
required_error: "μŠ€ν…Œλ””μ˜ 기술 μŠ€νƒμ„ μ„ νƒν•΄μ£Όμ„Έμš”.",
}),
positions: z
.array(number(), {
required_error: "μŠ€ν…Œλ””μ˜ λͺ¨μ§‘ λΆ„μ•Όλ₯Ό μ„ νƒν•΄μ£Όμ„Έμš”.",
})
.min(1, { message: "μŠ€ν…Œλ””μ˜ λͺ¨μ§‘ λΆ„μ•Όλ₯Ό 1개 이상 μ„ νƒν•΄μ£Όμ„Έμš”." }),
stacks: z
.array(number(), {
required_error: "μŠ€ν…Œλ””μ˜ 기술 μŠ€νƒμ„ μ„ νƒν•΄μ£Όμ„Έμš”.",
})
.min(1, { message: "μŠ€ν…Œλ””μ˜ 기술 μŠ€νƒμ„ 1개 이상 μ„ νƒν•΄μ£Όμ„Έμš”." }),
contact: z.union([
z
.string({ required_error: "μŠ€ν…Œλ””μ˜ 연락 μˆ˜λ‹¨ 정보λ₯Ό μž…λ ₯ν•΄μ£Όμ„Έμš”." })
Expand Down

0 comments on commit d4c77c2

Please sign in to comment.