Skip to content

Commit

Permalink
增加生成章节
Browse files Browse the repository at this point in the history
Signed-off-by: tolatolatop <[email protected]>
  • Loading branch information
tolatolatop committed Nov 26, 2023
1 parent 242c93f commit ee9cf01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.devcontainer
*.jar
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@

## Gen
通过工具将`openapi.json`转换成其他格式

转换为swagger.yaml
```shell
api-spec-converter --from=openapi_3 --to=swagger_2 --syntax=yaml --order=alpha openapi.json > gen/swagger.yaml
```

转换为其他sdk
```shell
api-spec-converter --from=openapi_3 --to=swagger_2 --syntax=yaml --order=alpha openapi.json > /gen/swagger.yaml
java -jar .jre/swagger-codegen-cli.jar generate -i ./gen/swagger.yaml -l python -DpackageName=pygitee -o gen/pygitee
```

0 comments on commit ee9cf01

Please sign in to comment.