- Fixed issue #940

This commit is contained in:
Ferdi Koomen 2022-01-26 10:25:08 +01:00
parent 8673f06ea4
commit a159e77245
3 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{{>header}}
{{#if @root.exportClient}}
export { AppClient } from './client';
export { {{{clientName}}} } from './client';
{{/if}}
{{#if @root.exportCore}}
export { ApiError } from './core/ApiError';

View File

@ -41,6 +41,7 @@ export const writeClientIndex = async (
exportSchemas,
useUnionTypes,
postfix,
clientName,
server: client.server,
version: client.version,
models: sortModelsByName(client.models),

View File

@ -14,7 +14,7 @@ const generate = async (input, output) => {
exportSchemas: true,
exportModels: true,
exportServices: true,
// clientName: 'AppClient',
// clientName: 'DemoAppClient',
// indent: OpenAPI.Indent.SPACE_2,
// postfix: 'Api',
// request: './test/custom/request.ts',