Skip to content

Commit

Permalink
api gen use local file.
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k1o committed Jan 7, 2022
1 parent d13542b commit f097a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/api-gen
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash
VERSION="1.0.0"

rm -rf ../client/src/api
mkdir ../client/src/api

docker run --rm \
--user "$(id -u):$(id -g)" \
-v "${PWD}/../client/src/api:/local/out" \
-v "${PWD}/../OpenApi.yml:/local/in.yaml" \
openapitools/openapi-generator-cli generate \
-i https://api.swaggerhub.com/apis/m1k1o/neko-rooms/${VERSION}/swagger.yaml \
-i /local/in.yaml \
-g typescript-axios \
-o /local/out \
--additional-properties=enumPropertyNaming=original,modelPropertyNaming=original
Expand Down

0 comments on commit f097a74

Please sign in to comment.