Skip to content

Commit bb1a430

Browse files
committed
final version
1 parent dcba0d5 commit bb1a430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openapi-typescript/src/transform/components-types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function transformComponentsObjectToTypes(components: ComponentsO
1919
ctx: { ...ctx, indentLv: indentLv },
2020
});
2121

22-
output.push(indent(`export type ${camelCase(key, { pascalCase: true })} = ${schemaType};\n`, indentLv));
22+
output.push(indent(`export type ${camelCase(name, { pascalCase: true })} = ${schemaType};\n`, indentLv));
2323
}
2424
} else {
2525
output.push(indent("schemas: never;", indentLv));

0 commit comments

Comments
 (0)