Skip to content

Commit 56783ba

Browse files
author
svolkov
committed
docs: update changelog(1.2.6); fix: problem with use default output option
1 parent a5b2fc5 commit 56783ba

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
node_modules
2+
swagger-test-cli.ts

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.2.6
2+
Fixes: create api without `-o` option (use default `./` output)
3+
14
# 1.2.5
25
Features: better naming of routes without `operationId`
36
![route naming](./assets/changelog_assets/1.2.5_route_naming.jpg)

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ program
1515
.version(version, '-v, --version', 'output the current version')
1616
.description("Generate api via swagger scheme.\nSupports OA 3.0, 2.0, JSON, yaml.")
1717
.requiredOption('-p, --path <path>', 'path/url to swagger scheme')
18-
.option('-o, --output <output>', 'output path of typescript api file', '.')
18+
.option('-o, --output <output>', 'output path of typescript api file', './')
1919
.option('-n, --name <name>', 'name of output typescript api file', 'api.ts');
2020

2121
program.parse(process.argv);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.2.4",
44
"description": "Create typescript api module from swagger schema",
55
"scripts": {
6-
"cli": "node index.js -p ./tests/schemas/v3.0/personal-api-example.json -o ./tests/generated/v3.0/ -n personal-api-example.ts",
6+
"cli": "node index.js -p ./tests/schemas/v3.0/personal-api-example.json -n swagger-test-cli.ts",
77
"cli:help": "node index.js -h",
88
"generate": "node tests/generate.js",
99
"generate:debug": "node --nolazy --inspect-brk=9229 tests/generate.js",

0 commit comments

Comments
 (0)