Skip to content

Commit 7b9a4d0

Browse files
authored
Merge pull request #2991 from hey-api/refactor/dsl-type-nodes-5
refactor: zod plugin use dsl
2 parents 6228211 + b52b5e4 commit 7b9a4d0

File tree

164 files changed

+2325
-3709
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+2325
-3709
lines changed

dev/openapi-ts.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ export default defineConfig(() => {
4040
// 'circular.yaml',
4141
// 'dutchie.json',
4242
// 'invalid',
43-
// 'full.yaml',
43+
'full.yaml',
4444
// 'openai.yaml',
4545
// 'opencode.yaml',
46-
'pagination-ref.yaml',
46+
// 'pagination-ref.yaml',
4747
// 'sdk-instance.yaml',
4848
// 'string-with-format.yaml',
4949
// 'transformers.json',
@@ -431,7 +431,7 @@ export default defineConfig(() => {
431431
{
432432
// case: 'snake_case',
433433
// comments: false,
434-
compatibilityVersion: 'mini',
434+
compatibilityVersion: 4,
435435
dates: {
436436
// local: true,
437437
// offset: true,

packages/openapi-ts-tests/main/test/__snapshots__/3.1.x/string-with-format/zod.gen.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
import { z } from 'zod';
44

55
export const zFoo = z.object({
6-
foo: z.optional(z.array(z.union([
7-
z.string(),
8-
z.string()
9-
])))
6+
foo: z.optional(z.array(z.union([z.string(), z.string()])))
107
});

0 commit comments

Comments
 (0)