Skip to content

Commit 9b78e8f

Browse files
committed
add config to control version in generated package
1 parent f20a0b4 commit 9b78e8f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build-sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
python3 -m pip install openapi-python-client;
33
version=$(yq '.info.version' open-api-spec.yml);
44
rm -rf ./guard-rails-api-client;
5-
openapi-python-client generate --path ./open-api-spec.yml --meta setup;
5+
openapi-python-client generate --config ./config.json --path ./open-api-spec.yml --meta setup;

config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"package_version_override": "0.0.2"
3+
}

0 commit comments

Comments
 (0)