mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
19 lines
549 B
Bash
Executable File
19 lines
549 B
Bash
Executable File
#!/bin/bash
|
|
VERSION="1.0.0"
|
|
|
|
rm -rf "${PWD}/api"
|
|
mkdir "${PWD}/api"
|
|
|
|
docker run --rm \
|
|
--user "$(id -u):$(id -g)" \
|
|
-v "${PWD}/api:/local/out" \
|
|
-v "${PWD}/OpenApi.yaml:/local/in.yaml" \
|
|
openapitools/openapi-generator-cli generate \
|
|
-i /local/in.yaml \
|
|
-g typescript-axios \
|
|
-o /local/out \
|
|
--additional-properties=enumPropertyNaming=original,modelPropertyNaming=original,withSeparateModelsAndApi=true,modelPackage=models,apiPackage=api
|
|
|
|
# Remove not needed git_push.sh
|
|
rm -f "${PWD}/api/git_push.sh"
|