Skip to content

Commit

Permalink
feat: add --skip-validate-spec to cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
rainmanhhh committed Aug 31, 2023
1 parent c137967 commit 341bbb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woog",
"version": "1.0.2",
"version": "1.0.3",
"description": "simple wrapper of @openapitools/openapi-generator-cli, with some default configurations",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function doGenerate(generatorDirName: string, outDir: string, originInput:
sortInput(inputFile, openAPIObject)
const template = configObj?.['x-template']
console.log('x-generator: %s, x-template: %o', generator, template)
let cmd = `openapi-generator-cli generate -i "${inputFile}" -o ${outDir} -g ${generator} `
let cmd = `openapi-generator-cli generate -i "${inputFile}" -o ${outDir} -g ${generator} --skip-validate-spec `
if (configObj != undefined) cmd += `-c ${configFile} `
// add template related param
if (template) {
Expand Down

0 comments on commit 341bbb7

Please sign in to comment.