Skip to content

Commit a76be11

Browse files
sutarminraveclassic
authored andcommitted
fix: Ability to use cusom serializer. Solves #26 (#27)
1 parent 88b1a44 commit a76be11

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { TFileReader } from './fileReader';
1212
import { Right } from 'fp-ts/lib/Either';
1313
import { ValidationError } from 'io-ts';
1414
import * as del from 'del';
15-
import { serialize } from './language/typescript';
1615

1716
const log = console.log.bind(console, '[SWAGGER-CODEGEN-TS]:');
1817

@@ -71,7 +70,7 @@ export const generate = async (options: TGenerateOptions): Promise<void> => {
7170
}
7271
await fs.mkdirp(out);
7372
const prettierConfig = await getPrettierConfig(options.pathToPrettierConfig);
74-
const serializer = serializeDecode(serialize);
73+
const serializer = serializeDecode(options.serialize);
7574

7675
for (const pathToFile of options.pathsToSpec) {
7776
const pathToSpec = resolvePath(pathToFile);

0 commit comments

Comments
 (0)