Skip to content

Commit

Permalink
Templated base URL in openapi and added some debug to the github acti…
Browse files Browse the repository at this point in the history
…ons build
  • Loading branch information
tomakehurst committed Sep 23, 2024
1 parent b7d1b37 commit 6d05e81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ jobs:

- name: Generate Typescript SDK
run: |
pwd
apimatic auth:login --auth-key=${{ secrets.APIMATIC_AUTH_KEY }}
apimatic sdk:generate --destination=sdks/ts --platform TYPESCRIPT --file=openapi.yaml
- name: Set publishing coordiates
working-directory: ./sdks/ts/openapi_sdk_typescript
run: |
pwd
echo '{ "version": "1.0.${{ github.run_number }}", "name": "@wiremock-inc/apimatic-sdkgen-demo", "repository": "github:wiremock-inc/apimatic-sdkgen-demo" }' > package-patch.json
jq -r -s '.[0] * .[1]' package.json package-patch.json > tmp.json
mv -f tmp.json package.json
Expand Down
9 changes: 7 additions & 2 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ info:
url: https://github.com/bump-sh-examples/train-travel-api/issues/new

servers:
- url: https://wm-train-travel.wiremockapi.cloud
description: Train Travel API mock
- url: https://{host}
description: Mock Train Travel API - HTTPS
variables:
host:
default: wm-train-travel.wiremockapi.cloud
description: The fully-qualified hostname of the API


security:
- OAuth2:
Expand Down

0 comments on commit 6d05e81

Please sign in to comment.