Skip to content

Commit 2943030

Browse files
committed
Zod mini schema fix
1 parent 351ea33 commit 2943030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { z } from 'zod/v4-mini';
22

33
export const schema = z.object({
4-
name: z.string().check(z.minLength(2, 'Name is too short')),
4+
name: z._default(z.string(), 'Hello world!'),
55
email: z.email('Invalid email')
66
});

0 commit comments

Comments
 (0)