Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanfilhoz committed May 12, 2024
1 parent d3e501e commit 446d600
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import { z } from 'zod'
export const exampleSchema = z.object({
name: z.string().min(3, 'Name must be at least 3 characters'),
message: z.string().min(10, 'Message must be at least 10 characters'),
attachment: z.instanceof(File).nullable().optional()
attachment: z.instanceof(File).nullish()
})
```

Expand Down
2 changes: 1 addition & 1 deletion app/forms/hello/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export const helloSchema = z.object({
name: z.string().min(3, 'Name must be at least 3 characters'),
age: z.number().int().min(18, 'You must be at least 18 years old'),
message: z.string().min(10, 'Message must be at least 10 characters'),
attachment: z.instanceof(File).nullable().optional(),
attachment: z.instanceof(File).nullish(),
terms: z.boolean().refine((value) => value, 'You must accept the terms')
})

0 comments on commit 446d600

Please sign in to comment.