Created
February 9, 2021 17:04
-
-
Save Integralist/28ea658092a78306071c46aebd56c607 to your computer and use it in GitHub Desktop.
[OpenAPI Generator] #openapi #api #generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
languages=("bash" "go" "javascript" "php" "python" "ruby" "rust" "typescript-fetch") | |
for lang in "${languages[@]}"; | |
do | |
for filename in .source-cache/.api-documentation/schemas/*; | |
do | |
name=$(basename $filename | cut -f 1 -d '.') | |
openapi-generator generate --skip-validate-spec -i "${filename}" -g "${lang}" -o "/tmp/api-code-gen/${lang}/${name}/" | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment