Skip to content

Commit d3923a8

Browse files
authored
Merge pull request #2544 from hey-api/chore/deps-update-@hey-api/json-schema-ref-parser-1.0.7
chore: Bump @hey-api/json-schema-ref-parser 1.0.7 & add tests
2 parents 2472e51 + d4cd30e commit d3923a8

File tree

130 files changed

+8893
-4678
lines changed

Some content is hidden

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

130 files changed

+8893
-4678
lines changed

.changeset/rich-seals-eat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@hey-api/openapi-ts': patch
3+
---
4+
5+
fix(parser): improve handling multiple references to shared external variable

examples/openapi-ts-angular-common/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@
2626
"express": "4.21.0",
2727
"rxjs": "7.8.2",
2828
"tslib": "2.8.1",
29-
"zone.js": "~0.15.0"
29+
"zone.js": "~0.15.1"
3030
},
3131
"devDependencies": {
3232
"@angular-devkit/build-angular": "19.2.0",
3333
"@angular/cli": "19.2.0",
3434
"@angular/compiler-cli": "19.2.0",
3535
"@hey-api/openapi-ts": "workspace:*",
3636
"@types/express": "4.17.21",
37-
"@types/jasmine": "~5.1.0",
37+
"@types/jasmine": "~5.1.9",
3838
"@types/node": "22.10.5",
3939
"@typescript-eslint/eslint-plugin": "8.29.1",
4040
"@typescript-eslint/parser": "8.29.1",
4141
"eslint": "9.17.0",
4242
"jasmine-core": "~5.6.0",
43-
"karma": "~6.4.0",
43+
"karma": "~6.4.4",
4444
"karma-chrome-launcher": "~3.2.0",
45-
"karma-coverage": "~2.2.0",
45+
"karma-coverage": "~2.2.1",
4646
"karma-jasmine": "~5.1.0",
4747
"karma-jasmine-html-reporter": "~2.1.0",
4848
"typescript": "5.8.3"

examples/openapi-ts-angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@
2626
"express": "4.21.0",
2727
"rxjs": "7.8.2",
2828
"tslib": "2.8.1",
29-
"zone.js": "~0.15.0"
29+
"zone.js": "~0.15.1"
3030
},
3131
"devDependencies": {
3232
"@angular-devkit/build-angular": "19.2.0",
3333
"@angular/cli": "19.2.0",
3434
"@angular/compiler-cli": "19.2.0",
3535
"@hey-api/openapi-ts": "workspace:*",
3636
"@types/express": "4.17.21",
37-
"@types/jasmine": "~5.1.0",
37+
"@types/jasmine": "~5.1.9",
3838
"@types/node": "22.10.5",
3939
"@typescript-eslint/eslint-plugin": "8.29.1",
4040
"@typescript-eslint/parser": "8.29.1",
4141
"eslint": "9.17.0",
4242
"jasmine-core": "~5.6.0",
43-
"karma": "~6.4.0",
43+
"karma": "~6.4.4",
4444
"karma-chrome-launcher": "~3.2.0",
45-
"karma-coverage": "~2.2.0",
45+
"karma-coverage": "~2.2.1",
4646
"karma-jasmine": "~5.1.0",
4747
"karma-jasmine-html-reporter": "~2.1.0",
4848
"typescript": "5.8.3"

examples/openapi-ts-tanstack-angular-query-experimental/package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "^19.2.0",
15-
"@angular/cdk": "^19.2.1",
16-
"@angular/common": "^19.2.0",
17-
"@angular/compiler": "^19.2.0",
18-
"@angular/core": "^19.2.0",
19-
"@angular/forms": "^19.2.0",
20-
"@angular/material": "^19.2.1",
21-
"@angular/platform-browser": "^19.2.0",
22-
"@angular/platform-browser-dynamic": "^19.2.0",
23-
"@angular/router": "^19.2.0",
14+
"@angular/animations": "^19.2.14",
15+
"@angular/cdk": "^19.2.19",
16+
"@angular/common": "^19.2.14",
17+
"@angular/compiler": "^19.2.14",
18+
"@angular/core": "^19.2.14",
19+
"@angular/forms": "^19.2.14",
20+
"@angular/material": "^19.2.19",
21+
"@angular/platform-browser": "^19.2.14",
22+
"@angular/platform-browser-dynamic": "^19.2.14",
23+
"@angular/router": "^19.2.14",
2424
"@tanstack/angular-query-experimental": "5.73.3",
25-
"rxjs": "~7.8.0",
25+
"rxjs": "~7.8.2",
2626
"tslib": "^2.8.1",
27-
"zone.js": "~0.15.0"
27+
"zone.js": "~0.15.1"
2828
},
2929
"devDependencies": {
30-
"@angular-devkit/build-angular": "^19.2.0",
31-
"@angular/cli": "^19.2.0",
32-
"@angular/compiler-cli": "^19.2.0",
30+
"@angular-devkit/build-angular": "^19.2.15",
31+
"@angular/cli": "^19.2.15",
32+
"@angular/compiler-cli": "^19.2.14",
3333
"@hey-api/openapi-ts": "workspace:*",
34-
"@types/jasmine": "~5.1.0",
34+
"@types/jasmine": "~5.1.9",
3535
"jasmine-core": "~5.2.0",
36-
"karma": "~6.4.0",
36+
"karma": "~6.4.4",
3737
"karma-chrome-launcher": "~3.2.0",
38-
"karma-coverage": "~2.2.0",
38+
"karma-coverage": "~2.2.1",
3939
"karma-jasmine": "~5.1.0",
4040
"karma-jasmine-html-reporter": "~2.1.0",
4141
"typescript": "5.8.3"

packages/config-vite-base/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
},
1313
"dependencies": {
1414
"vite": "7.1.2",
15-
"vitest": "^3.1.1"
15+
"vitest": "^3.2.4"
1616
},
1717
"devDependencies": {
18-
"typescript": "^5.8.3"
18+
"typescript": "^5.9.2"
1919
},
2020
"private": true
2121
}

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/schemas/default/schemas.gen.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

3+
export const ExternalRefASchema = {
4+
description: 'External ref to shared model (A)',
5+
type: 'object',
6+
properties: {
7+
id: {
8+
type: 'string'
9+
},
10+
name: {
11+
type: 'string'
12+
}
13+
},
14+
required: ['id']
15+
} as const;
16+
17+
export const ExternalRefBSchema = {
18+
description: 'External ref to shared model (B)',
19+
'$ref': '#/definitions/ExternalRefA'
20+
} as const;
21+
322
export const CommentWithBreaksSchema = {
423
description: `Testing multiline comments in string: First line
524
Second line

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/default/types.gen.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

3+
/**
4+
* External ref to shared model (A)
5+
*/
6+
export type ExternalRefA = {
7+
id: string;
8+
name?: string;
9+
};
10+
11+
export type ExternalRefB = ExternalRefA;
12+
313
/**
414
* Testing multiline comments in string: First line
515
* Second line

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@hey-api/sdk/throwOnError/types.gen.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

3+
/**
4+
* External ref to shared model (A)
5+
*/
6+
export type ExternalRefA = {
7+
id: string;
8+
name?: string;
9+
};
10+
11+
export type ExternalRefB = ExternalRefA;
12+
313
/**
414
* Testing multiline comments in string: First line
515
* Second line

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/fetch/types.gen.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

3+
/**
4+
* External ref to shared model (A)
5+
*/
6+
export type ExternalRefA = {
7+
id: string;
8+
name?: string;
9+
};
10+
11+
export type ExternalRefB = ExternalRefA;
12+
313
/**
414
* Testing multiline comments in string: First line
515
* Second line

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@pinia/colada/group-by-tag/types.gen.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
// This file is auto-generated by @hey-api/openapi-ts
22

3+
/**
4+
* External ref to shared model (A)
5+
*/
6+
export type ExternalRefA = {
7+
id: string;
8+
name?: string;
9+
};
10+
11+
export type ExternalRefB = ExternalRefA;
12+
313
/**
414
* Testing multiline comments in string: First line
515
* Second line

0 commit comments

Comments
 (0)