-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add number, object and array fixture props to test code samples, upda…
…te snapshots
- Loading branch information
1 parent
7b1ae5b
commit 371be7c
Showing
6 changed files
with
269 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import { z } from 'zod' | ||
import { array, z } from 'zod' | ||
|
||
export const foo = z.object({ | ||
foo_id: z.string().uuid(), | ||
name: z.string(), | ||
deprecated_prop: z.string().optional(), | ||
undocumented_prop: z.string().optional(), | ||
nullable_property: z.string().optional().nullable(), | ||
nullable_prop: z.string().optional().nullable(), | ||
number_prop: z.number().optional(), | ||
object_prop: z.record(z.string(), z.any()).optional(), | ||
array_prop: array(z.string()).optional(), | ||
}) |
Oops, something went wrong.