Skip to content

Commit

Permalink
ci: fix client generation
Browse files Browse the repository at this point in the history
  • Loading branch information
amagyar-iohk committed Oct 23, 2023
1 parent 5204838 commit 5444084
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/release-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
username: ${{ secrets.ATALA_GITHUB_ACTOR }}
password: ${{ secrets.ATALA_GITHUB_TOKEN }}

- name: Setup yq - portable yaml processor
uses: mikefarah/[email protected]

- name: Install generator dependencies
working-directory: prism-agent/client/generator
run: yarn install
Expand Down
5 changes: 4 additions & 1 deletion prism-agent/client/generator/generate-clients.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/bash
set -e

# open api cli generator is not compatible with 3.1.0
yq e -i '.openapi = "3.0.3"' ../../service/api/http/prism-agent-openapi-spec.yaml

# generate kotlin models
yarn openapi-generator-cli generate \
-g kotlin \
-i ../../service/api/http/prism-agent-openapi-spec.yaml \
-o ../kotlin \
--ignore-file-override ../kotlin/.openapi-generator-ignore \
--additional-properties=packageName=io.iohk.atala.prism,serializationLibrary=gson
--additional-properties=packageName=io.iohk.atala.prism,serializationLibrary=gson,enumPropertyNaming=UPPERCASE

# generate typescript models
yarn openapi-generator-cli generate \
Expand Down

0 comments on commit 5444084

Please sign in to comment.