Skip to content

Commit 94a254f

Browse files
committed
wip
1 parent d706e87 commit 94a254f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-typescript/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async function openapiTS(schema: string | URL | OpenAPI3 | Readable, options: Op
121121

122122
if (options.rootTypes) {
123123
for (const schema of Object.keys(typedComponents.schemas as object)) {
124-
output.push(`export type ${schema} = components["schema"]["${schema}"];\n`);
124+
output.push(`export type ${schema} = external["."]["components"]["schemas"]["${schema}"];\n`);
125125
}
126126
}
127127

0 commit comments

Comments
 (0)