Skip to content

Commit

Permalink
chore: add type-mappings, skip-validate-spec, useSingleRequestParamet…
Browse files Browse the repository at this point in the history
…er, generator cli options
  • Loading branch information
nguyentoanit committed Mar 5, 2021
1 parent b12ae2d commit 862b09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function fetchContentsByPath(repoPath = 'models'): Promise<GithubObject[]>
function generateAPIModel(model: GithubObject): APIModel {
const outputFolder = path.basename(path.dirname(model.path))
const out = `src/api-models/${outputFolder}`
const command = `openapi-generator-cli generate -g typescript-axios --additional-properties=supportsES6=true -o ${out} -i ${model.download_url}`
const command = `openapi-generator-cli generate -g typescript-axios --additional-properties=supportsES6=true,useSingleRequestParameter=true --type-mappings=set=Array --skip-validate-spec -o ${out} -i ${model.download_url}`

return {
...model,
Expand Down

0 comments on commit 862b09b

Please sign in to comment.