We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 351ea33 commit 2943030Copy full SHA for 2943030
src/routes/(v2)/v2/zodmini/schema.ts
@@ -1,6 +1,6 @@
1
import { z } from 'zod/v4-mini';
2
3
export const schema = z.object({
4
- name: z.string().check(z.minLength(2, 'Name is too short')),
+ name: z._default(z.string(), 'Hello world!'),
5
email: z.email('Invalid email')
6
});
0 commit comments