Skip to content

Commit

Permalink
feat: generateSchema ignoreErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
liangskyli committed Jun 2, 2022
1 parent 4a89a78 commit 3b17c36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/openapi-gen-ts/src/gen/gen-json-schema-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const genSchemaDataFile = async (opts: IOpts) => {
} = opts;
let { prettierOptions } = opts;
const program = TJS.getProgramFromFiles([tsSchemaPath], compilerOptions);
const schemaDefinition = TJS.generateSchema(program, 'paths', { required: true });
const schemaDefinition = TJS.generateSchema(program, 'paths', { required: true, ignoreErrors: true });
if (prettierOptions === undefined) {
prettierOptions = { parser: 'json' };
}
Expand Down

0 comments on commit 3b17c36

Please sign in to comment.