Skip to content

Commit 3a6c7f6

Browse files
committed
feat: add parameters to Zod request schemas
1 parent 53af4cf commit 3a6c7f6

File tree

17 files changed

+1661
-1370
lines changed

17 files changed

+1661
-1370
lines changed

packages/openapi-ts-tests/test/__snapshots__/2.0.x/plugins/@hey-api/transformers/type-format-zod/zod.gen.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ export const zBar = z.object({
1212
foo: z.number().int()
1313
});
1414

15+
export const zPostFooData = z.object({
16+
body: z.never().optional(),
17+
headers: z.never().optional(),
18+
path: z.never().optional(),
19+
query: z.never().optional()
20+
});
21+
1522
/**
1623
* OK
1724
*/

0 commit comments

Comments
 (0)