Skip to content

Commit

Permalink
fix: generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 25, 2024
1 parent efa9d50 commit c2fbcd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ docker run --platform linux/amd64 --mount type=bind,source="$(pwd)",target=/proj
If a test fails in CI, you may run the following code snippet to reproduce the failure locally:

```shell script
docker run --platform linux/amd64 --mount type=bind,source="$(pwd)",target=/project --name sdk -it oryd/sdk:v0.0.51 /bin/bash
docker run --platform linux/amd64 --mount type=bind,source="$(pwd)",target=/project --name sdk -it oryd/sdk:v0.0.53 /bin/bash

export FORCE_PROJECT=client # or hydra or something else
export FORCE_VERSION=$(cat /project/spec/$FORCE_PROJECT/latest) # or a specific version, e.g. v1.2.17
Expand Down
5 changes: 2 additions & 3 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ java () {

# Upgrading Java requires adjusting the pom.xml files in contrib/client. Usually,
# new versions of the generator introduce changes to the pom dependencies.
openapi-generator-cli version-manager set 7.4.0
openapi-generator-cli version-manager set 7.3.0
openapi-generator-cli generate -i "${SPEC_FILE}" \
-g java \
-o "$dir" \
Expand Down Expand Up @@ -297,14 +297,13 @@ rust () {
rm -rf "$dir" || true
mkdir -p "$dir"

openapi-generator-cli version-manager set 6.0.1
openapi-generator-cli version-manager set 7.4.0
# We use a custom rust template to fix some of the compilation issues:
# - https://github.com/OpenAPITools/openapi-generator/issues/13257
# - https://github.com/OpenAPITools/openapi-generator/issues/10845
openapi-generator-cli generate -i "${SPEC_FILE}" \
-g rust \
-o "$dir" \
-t ./openapi/templates/rust \
--git-user-id ory \
--git-repo-id sdk \
--git-host github.com \
Expand Down

0 comments on commit c2fbcd5

Please sign in to comment.