Skip to content

Commit 9eb2000

Browse files
Marcel JacekMarcel Jacek
authored andcommitted
bumped python generator version
- fix: python generator passed the arguments correct
1 parent 5bfdf78 commit 9eb2000

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

scripts/generate-sdk/generate-sdk.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ go)
5858
;;
5959
python)
6060
# Renovate: datasource=github-tags depName=OpenAPITools/openapi-generator versioning=semver
61-
GENERATOR_VERSION="v7.9.0"
61+
GENERATOR_VERSION="v7.13.0"
6262
;;
6363
*)
6464
echo "SDK language not supported."
@@ -91,8 +91,8 @@ python)
9191
echo -e "\n>> Generating the Python SDK..."
9292

9393
source ${LANGUAGE_GENERATORS_FOLDER_PATH}/${LANGUAGE}.sh
94-
# Usage: generate_python_sdk GENERATOR_PATH GIT_HOST GIT_USER_ID [GIT_REPO_ID] [SDK_REPO_URL]
95-
generate_python_sdk ${jar_path} ${GIT_HOST} ${GIT_USER_ID} ${GIT_REPO_ID} ${SDK_REPO_URL}
94+
# Usage: generate_python_sdk GENERATOR_PATH GIT_HOST GIT_USER_ID [GIT_REPO_ID] [SDK_REPO_URL] [SDK_BRANCH]
95+
generate_python_sdk "${jar_path}" "${GIT_HOST}" "${GIT_USER_ID}" "${GIT_REPO_ID}" "${SDK_REPO_URL}" "${SDK_BRANCH}"
9696
;;
9797
*)
9898
echo "! SDK language not supported."

scripts/generate-sdk/languages/python.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ generate_python_sdk() {
2121
# Optional parameters
2222
local GIT_REPO_ID=$4
2323
local SDK_REPO_URL=$5
24+
local SDK_BRANCH=$6
2425

2526
# Check required parameters
2627
if [[ -z ${GIT_HOST} ]]; then
@@ -54,7 +55,7 @@ generate_python_sdk() {
5455
echo "Old SDK repo clone was found, it will be removed."
5556
rm -rf ${SDK_REPO_LOCAL_PATH}
5657
fi
57-
git clone --quiet ${SDK_REPO_URL} ${SDK_REPO_LOCAL_PATH}
58+
git clone --quiet -b ${SDK_BRANCH} ${SDK_REPO_URL} ${SDK_REPO_LOCAL_PATH}
5859

5960
# Install SDK project tools
6061
cd ${ROOT_DIR}

0 commit comments

Comments
 (0)