Skip to content

Commit 663bd5e

Browse files
committed
Support JSONSchema $defs
1 parent c5b6ed8 commit 663bd5e

24 files changed

+797
-265
lines changed

.changeset/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": ["@changesets/changelog-github", { "repo": "drwpow/openapi-typescript" }],
4-
"ignore": ["openapi-typescript-docs"],
4+
"ignore": ["openapi-typescript-docs", "@example/*"],
55
"commit": false,
66
"fixed": [],
77
"linked": [],

.changeset/kind-ladybugs-kneel.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openapi-typescript": patch
3+
---
4+
5+
Fix JSONSchema $defs

.changeset/sour-ants-walk.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"openapi-typescript": patch
3+
---
4+
5+
Improve remote $ref parsing

packages/openapi-fetch/examples/nextjs/lib/api/v1.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export interface components {
9898
pathItems: never;
9999
}
100100

101+
export type $defs = Record<string, never>;
102+
101103
export type external = Record<string, never>;
102104

103105
export interface operations {

packages/openapi-fetch/examples/react-query/src/lib/api/v1.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export interface components {
9898
pathItems: never;
9999
}
100100

101+
export type $defs = Record<string, never>;
102+
101103
export type external = Record<string, never>;
102104

103105
export interface operations {

packages/openapi-fetch/examples/sveltekit/src/lib/api/v1.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ export interface components {
9898
pathItems: never;
9999
}
100100

101+
export type $defs = Record<string, never>;
102+
101103
export type external = Record<string, never>;
102104

103105
export interface operations {

packages/openapi-fetch/test/v1.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ export interface components {
422422
pathItems: never;
423423
}
424424

425+
export type $defs = Record<string, never>;
426+
425427
export type external = Record<string, never>;
426428

427429
export interface operations {

0 commit comments

Comments
 (0)