Skip to content

Commit e08e3e6

Browse files
committed
fix(parser): prevent broken output by tracking dependencies when using filters
1 parent 33a417f commit e08e3e6

File tree

4 files changed

+436
-51
lines changed

4 files changed

+436
-51
lines changed

packages/openapi-ts-tests/test/openapi-ts.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export default defineConfig(() => {
2525
// 'x-foo': 'bar',
2626
// },
2727
// },
28-
// include:
29-
// '^(#/components/schemas/import|#/paths/api/v{api-version}/simple/options)$',
28+
include: '^(#/components/schemas/Foo)$',
29+
// '^(#/components/schemas/Foo|#/paths/api/v{api-version}/simple/options)$',
3030
// organization: 'hey-api',
3131
// path: {
3232
// components: {},
@@ -36,7 +36,7 @@ export default defineConfig(() => {
3636
// openapi: '3.1.0',
3737
// paths: {},
3838
// },
39-
path: path.resolve(__dirname, 'spec', '3.1.x', 'full.json'),
39+
path: path.resolve(__dirname, 'spec', '3.1.x', 'read-write-only.yaml'),
4040
// path: 'http://localhost:4000/',
4141
// path: 'https://get.heyapi.dev/',
4242
// path: 'https://get.heyapi.dev/hey-api/backend?branch=main&version=1.0.0',
@@ -115,7 +115,7 @@ export default defineConfig(() => {
115115
},
116116
{
117117
exportFromIndex: true,
118-
name: '@tanstack/react-query',
118+
// name: '@tanstack/react-query',
119119
},
120120
{
121121
// exportFromIndex: true,

0 commit comments

Comments
 (0)