mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-03 07:01:35 -06:00
api gen use local file.
This commit is contained in:
+2
-2
@@ -1,5 +1,4 @@
|
||||
#!/bin/bash
|
||||
VERSION="1.0.0"
|
||||
|
||||
rm -rf ../client/src/api
|
||||
mkdir ../client/src/api
|
||||
@@ -7,8 +6,9 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user