Skip to content

Commit

Permalink
Merge pull request #6 from acacode/next
Browse files Browse the repository at this point in the history
1.2.6
  • Loading branch information
js2me authored Feb 19, 2020
2 parents b49b14e + 56783ba commit fdf23f3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
node_modules
swagger-test-cli.ts
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.2.6
Fixes: create api without `-o` option (use default `./` output)

# 1.2.5
Features: better naming of routes without `operationId`
![route naming](./assets/changelog_assets/1.2.5_route_naming.jpg)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Any questions you can ask [**here**](https://github.com/acacode/swagger-typescri

<br>

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

## 👀 Examples

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ program
.version(version, '-v, --version', 'output the current version')
.description("Generate api via swagger scheme.\nSupports OA 3.0, 2.0, JSON, yaml.")
.requiredOption('-p, --path <path>', 'path/url to swagger scheme')
.option('-o, --output <output>', 'output path of typescript api file', '.')
.option('-o, --output <output>', 'output path of typescript api file', './')
.option('-n, --name <name>', 'name of output typescript api file', 'api.ts');

program.parse(process.argv);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.2.5",
"description": "Create typescript api module from swagger schema",
"scripts": {
"cli": "node index.js -p ./tests/schemas/v3.0/personal-api-example.json -o ./tests/generated/v3.0/ -n personal-api-example.ts",
"cli": "node index.js -p ./tests/schemas/v3.0/personal-api-example.json -n swagger-test-cli.ts",
"cli:help": "node index.js -h",
"generate": "node tests/generate.js",
"generate:debug": "node --nolazy --inspect-brk=9229 tests/generate.js",
Expand Down

0 comments on commit fdf23f3

Please sign in to comment.