Skip to content

Commit 6285367

Browse files
authored
Merge pull request #434 from acacode/next
Release 11.1.1
2 parents a6814dc + 7767b19 commit 6285367

File tree

5 files changed

+469
-4
lines changed

5 files changed

+469
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# next release
22

3+
# 11.1.1
4+
fix: `--api-class-name` option has no default value (#433)
5+
36
# 11.1.0
47
BREAKING_CHANGE: replace `axios` to `node-fetch`
58
feat: ability to send request options for getting swagger schema by url (`requestOptions` property)

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ const program = cli({
180180
{
181181
flags: "--api-class-name <string>",
182182
description: "name of the api class",
183+
default: codeGenBaseConfig.apiClassName,
183184
},
184185
{
185186
flags: "--patch",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swagger-typescript-api",
3-
"version": "11.1.0",
3+
"version": "11.1.1",
44
"description": "Generate typescript/javascript api from swagger schema",
55
"scripts": {
66
"cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
@@ -47,7 +47,7 @@
4747
"test:--type-suffix--type-prefix": "node tests/spec/typeSuffixPrefix/test.js",
4848
"test:--dot-path-params": "node tests/spec/dot-path-params/test.js",
4949
"test:--primitive-type-constructs": "node tests/spec/primitive-type-constructs/test.js",
50-
"test:--cli": "node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --type-prefix Prefix --api-class-name MySuperApi --no-client",
50+
"test:--cli": "node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --api-class-name MySuperApi --type-prefix Prefix",
5151
"test:partialBaseTemplate": "node tests/spec/partialBaseTemplate/test.js",
5252
"test:partialDefaultTemplate": "node tests/spec/partialDefaultTemplate/test.js",
5353
"test:--patch": "node tests/spec/patch/test.js",

0 commit comments

Comments
 (0)