11# Component versions
22LEDGER_VERSION := " v2.4.6"
3- PAYMENTS_VERSION := " v3.3 .0"
3+ PAYMENTS_VERSION := " v3.4 .0"
44WALLETS_VERSION := " v2.1.5"
55WEBHOOKS_VERSION := " v2.3.2"
66AUTH_VERSION := " v2.4.3"
@@ -12,15 +12,15 @@ GATEWAY_VERSION := "v2.2.0"
1212# Download all component OpenAPI specs from GitHub releases
1313download-specs :
1414 mkdir -p components
15- wget -q https:// github.com/ formancehq/ ledger/ releases/ download/ {{ LEDGER_VERSION}} / openapi.yaml -O components/ ledger.openapi.yaml
16- wget -q https:// github.com/ formancehq/ payments/ releases/ download/ {{ PAYMENTS_VERSION}} / openapi.yaml -O components/ payments.openapi.yaml
17- wget -q https:// github.com/ formancehq/ gateway/ releases/ download/ {{ GATEWAY_VERSION}} / openapi.yaml -O components/ gateway.openapi.yaml
18- wget -q https:// github.com/ formancehq/ auth/ releases/ download/ {{ AUTH_VERSION}} / openapi.yaml -O components/ auth.openapi.yaml
19- wget -q https:// github.com/ formancehq/ search/ releases/ download/ {{ SEARCH_VERSION}} / openapi.yaml -O components/ search.openapi.yaml
20- wget -q https:// github.com/ formancehq/ webhooks/ releases/ download/ {{ WEBHOOKS_VERSION}} / openapi.yaml -O components/ webhooks.openapi.yaml
21- wget -q https:// github.com/ formancehq/ wallets/ releases/ download/ {{ WALLETS_VERSION}} / openapi.yaml -O components/ wallets.openapi.yaml
22- wget -q https:// github.com/ formancehq/ reconciliation/ releases/ download/ {{ RECONCILIATION_VERSION}} / openapi.yaml -O components/ reconciliation.openapi.yaml
23- wget -q https:// github.com/ formancehq/ flows/ releases/ download/ {{ ORCHESTRATION_VERSION}} / openapi.yaml -O components/ orchestration.openapi.yaml
15+ wget -q https:// github.com/ formancehq/ ledger/ releases/ download/ {{ LEDGER_VERSION }} / openapi.yaml -O components/ ledger.openapi.yaml
16+ wget -q https:// github.com/ formancehq/ payments/ releases/ download/ {{ PAYMENTS_VERSION }} / openapi.yaml -O components/ payments.openapi.yaml
17+ wget -q https:// github.com/ formancehq/ gateway/ releases/ download/ {{ GATEWAY_VERSION }} / openapi.yaml -O components/ gateway.openapi.yaml
18+ wget -q https:// github.com/ formancehq/ auth/ releases/ download/ {{ AUTH_VERSION }} / openapi.yaml -O components/ auth.openapi.yaml
19+ wget -q https:// github.com/ formancehq/ search/ releases/ download/ {{ SEARCH_VERSION }} / openapi.yaml -O components/ search.openapi.yaml
20+ wget -q https:// github.com/ formancehq/ webhooks/ releases/ download/ {{ WEBHOOKS_VERSION }} / openapi.yaml -O components/ webhooks.openapi.yaml
21+ wget -q https:// github.com/ formancehq/ wallets/ releases/ download/ {{ WALLETS_VERSION }} / openapi.yaml -O components/ wallets.openapi.yaml
22+ wget -q https:// github.com/ formancehq/ reconciliation/ releases/ download/ {{ RECONCILIATION_VERSION }} / openapi.yaml -O components/ reconciliation.openapi.yaml
23+ wget -q https:// github.com/ formancehq/ flows/ releases/ download/ {{ ORCHESTRATION_VERSION }} / openapi.yaml -O components/ orchestration.openapi.yaml
2424
2525# Prepend API path prefix to each component spec
2626prepend -paths: download-specs
@@ -41,7 +41,7 @@ strip-servers: prepend-paths
4141build-openapi version = " v0.0.0": strip-servers
4242 mkdir -p releases/ build
4343 speakeasy run -s all
44- cd releases && sed -i' ' -e ' s/SDK_VERSION/{{ version}} /g' build/ generate.json
44+ cd releases && sed -i' ' -e ' s/SDK_VERSION/{{ version }} /g' build/ generate.json
4545
4646# Generate event schemas
4747generate-events :
@@ -53,7 +53,7 @@ build version="v0.0.0": (build-openapi version) generate-events
5353
5454# Publish OpenAPI spec to Speakeasy Registry
5555publish-speakeasy version : prepend-paths
56- speakeasy run -s all --registry-tags {{ version}} ,LATEST_RELEASE
56+ speakeasy run -s all --registry-tags {{ version }} ,LATEST_RELEASE
5757
5858# Pre-commit: build spec and generate events
59- pre-commit : ( build-openapi ) generate-events
59+ pre-commit : build-openapi generate-events
0 commit comments