Skip to content

Commit

Permalink
Merge pull request #53 from traP-jp/openapi-generator-cli
Browse files Browse the repository at this point in the history
openapi-generator-cliの設定を追加
  • Loading branch information
ZOI-dayo authored Nov 12, 2024
2 parents 003e6ef + 811ff71 commit ef81a5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ coverage
*.sw?

*.tsbuildinfo

src/api
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/api/
6 changes: 6 additions & 0 deletions scripts/gen-api.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash -eux

docker run --rm -v "$(dirname $0)/../:/local" -u $(id -u):$(id -g) openapitools/openapi-generator-cli generate \
-i https://raw.githubusercontent.com/traP-jp/traO-Judge-docs/refs/tags/1.1.0/api/backend/frontend-backend.yaml \
-g typescript-fetch \
-o /local/src/api

0 comments on commit ef81a5f

Please sign in to comment.