Skip to content

Commit 8ce204c

Browse files
committed
Support JSONSchema $defs
1 parent c5b6ed8 commit 8ce204c

21 files changed

+786
-264
lines changed

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)