swagger-typescript-api 11.1.0 → 11.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -180,6 +180,7 @@ const program = cli({
180
180
  {
181
181
  flags: "--api-class-name <string>",
182
182
  description: "name of the api class",
183
+ default: codeGenBaseConfig.apiClassName,
183
184
  },
184
185
  {
185
186
  flags: "--patch",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagger-typescript-api",
3
- "version": "11.1.0",
3
+ "version": "11.1.1",
4
4
  "description": "Generate typescript/javascript api from swagger schema",
5
5
  "scripts": {
6
6
  "cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
@@ -46,7 +46,7 @@
46
46
  "test:--type-suffix--type-prefix": "node tests/spec/typeSuffixPrefix/test.js",
47
47
  "test:--dot-path-params": "node tests/spec/dot-path-params/test.js",
48
48
  "test:--primitive-type-constructs": "node tests/spec/primitive-type-constructs/test.js",
49
- "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",
49
+ "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",
50
50
  "test:partialBaseTemplate": "node tests/spec/partialBaseTemplate/test.js",
51
51
  "test:partialDefaultTemplate": "node tests/spec/partialDefaultTemplate/test.js",
52
52
  "test:--patch": "node tests/spec/patch/test.js",