Skip to content

Commit

Permalink
fix(cli-generate-http-client): fix default value to map methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Nov 29, 2022
1 parent 8bf8668 commit b7d8283
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -114,7 +114,7 @@ export class GenerateHttpClientCmd implements CommandProvider {
}

private async generateFromSpec(spec: any, conf: any, $ctx: GenerateHttpClientCtx) {
const operationIdMode = conf.operationId === "%c_%m" ? "underscore" : "default";
const operationIdMode = !conf.operationId || conf.operationId === "%c_%m" ? "underscore" : "default";

const {files} = await generateApi({
name: `${$ctx.name}.ts`,
Expand Down

0 comments on commit b7d8283

Please sign in to comment.