Skip to content

Commit fdf23f3

Browse files
authored
Merge pull request #6 from acacode/next
1.2.6
2 parents b49b14e + 56783ba commit fdf23f3

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
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)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Any questions you can ask [**here**](https://github.com/acacode/swagger-typescri
1717

1818
<br>
1919

20-
![](./assets/components-converter-example.jpg)
20+
![](https://raw.githubusercontent.com/acacode/swagger-typescript-api/master/assets/components-converter-example.jpg)
2121

2222
## 👀 Examples
2323

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.5",
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)