We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88b1a44 commit a76be11Copy full SHA for a76be11
src/index.ts
@@ -12,7 +12,6 @@ import { TFileReader } from './fileReader';
12
import { Right } from 'fp-ts/lib/Either';
13
import { ValidationError } from 'io-ts';
14
import * as del from 'del';
15
-import { serialize } from './language/typescript';
16
17
const log = console.log.bind(console, '[SWAGGER-CODEGEN-TS]:');
18
@@ -71,7 +70,7 @@ export const generate = async (options: TGenerateOptions): Promise<void> => {
71
70
}
72
await fs.mkdirp(out);
73
const prettierConfig = await getPrettierConfig(options.pathToPrettierConfig);
74
- const serializer = serializeDecode(serialize);
+ const serializer = serializeDecode(options.serialize);
75
76
for (const pathToFile of options.pathsToSpec) {
77
const pathToSpec = resolvePath(pathToFile);
0 commit comments