Skip to content

Commit ce61c79

Browse files
committed
feat: Update config
1 parent 3bf4c46 commit ce61c79

2 files changed

Lines changed: 33 additions & 20 deletions

File tree

Earthfile

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ PROJECT FormanceHQ/stack
33

44
IMPORT github.com/formancehq/earthly:tags/v0.15.0 AS core
55

6-
ARG LEDGER_VERSION=v2.4.0
7-
ARG PAYMENTS_VERSION=v3.2.0
8-
ARG WALLETS_VERSION=v2.1.5
9-
ARG WEBHOOKS_VERSION=v2.2.0
10-
ARG AUTH_VERSION=v2.4.3
11-
ARG SEARCH_VERSION=v2.1.0
12-
ARG ORCHESTRATION_VERSION=v2.4.1
13-
ARG RECONCILIATION_VERSION=v2.2.2
14-
ARG GATEWAY_VERSION=v2.2.0
6+
ARG --global LEDGER_VERSION=v2.4.0
7+
ARG --global PAYMENTS_VERSION=v3.2.0
8+
ARG --global WALLETS_VERSION=v2.1.5
9+
ARG --global WEBHOOKS_VERSION=v2.2.0
10+
ARG --global AUTH_VERSION=v2.4.3
11+
ARG --global SEARCH_VERSION=v2.1.0
12+
ARG --global ORCHESTRATION_VERSION=v2.4.1
13+
ARG --global RECONCILIATION_VERSION=v2.2.2
14+
ARG --global GATEWAY_VERSION=v2.2.0
1515

1616
sources:
1717
FROM core+base-image
@@ -21,7 +21,7 @@ sources:
2121

2222
build-final-spec:
2323
FROM core+base-image
24-
RUN apk update && apk add yarn nodejs npm jq curl
24+
RUN apk update && apk add yarn nodejs npm jq
2525
WORKDIR /src/releases
2626
COPY releases/package.* .
2727
RUN npm install
@@ -34,19 +34,19 @@ build-final-spec:
3434

3535
WORKDIR /src/components
3636
# Download OpenAPI specs from GitHub releases
37-
RUN curl -L https://github.com/formancehq/ledger/releases/download/${LEDGER_VERSION}/openapi.yaml -o ledger.openapi.yaml
38-
RUN curl -L https://github.com/formancehq/payments/releases/download/${PAYMENTS_VERSION}/openapi.yaml -o payments.openapi.yaml
39-
RUN curl -L https://github.com/formancehq/gateway/releases/download/${GATEWAY_VERSION}/openapi.yaml -o gateway.openapi.yaml
40-
RUN curl -L https://github.com/formancehq/auth/releases/download/${AUTH_VERSION}/openapi.yaml -o auth.openapi.yaml
41-
RUN curl -L https://github.com/formancehq/search/releases/download/${SEARCH_VERSION}/openapi.yaml -o search.openapi.yaml
42-
RUN curl -L https://github.com/formancehq/webhooks/releases/download/${WEBHOOKS_VERSION}/openapi.yaml -o webhooks.openapi.yaml
43-
RUN curl -L https://github.com/formancehq/wallets/releases/download/${WALLETS_VERSION}/openapi.yaml -o wallets.openapi.yaml
44-
RUN curl -L https://github.com/formancehq/reconciliation/releases/download/${RECONCILIATION_VERSION}/openapi.yaml -o reconciliation.openapi.yaml
45-
RUN curl -L https://github.com/formancehq/flows/releases/download/${ORCHESTRATION_VERSION}/openapi.yaml -o orchestration.openapi.yaml
37+
RUN wget -q https://github.com/formancehq/ledger/releases/download/${LEDGER_VERSION}/openapi.yaml -O ledger.openapi.yaml
38+
RUN wget -q https://github.com/formancehq/payments/releases/download/${PAYMENTS_VERSION}/openapi.yaml -O payments.openapi.yaml
39+
RUN wget -q https://github.com/formancehq/gateway/releases/download/${GATEWAY_VERSION}/openapi.yaml -O gateway.openapi.yaml
40+
RUN wget -q https://github.com/formancehq/auth/releases/download/${AUTH_VERSION}/openapi.yaml -O auth.openapi.yaml
41+
RUN wget -q https://github.com/formancehq/search/releases/download/${SEARCH_VERSION}/openapi.yaml -O search.openapi.yaml
42+
RUN wget -q https://github.com/formancehq/webhooks/releases/download/${WEBHOOKS_VERSION}/openapi.yaml -O webhooks.openapi.yaml
43+
RUN wget -q https://github.com/formancehq/wallets/releases/download/${WALLETS_VERSION}/openapi.yaml -O wallets.openapi.yaml
44+
RUN wget -q https://github.com/formancehq/reconciliation/releases/download/${RECONCILIATION_VERSION}/openapi.yaml -O reconciliation.openapi.yaml
45+
RUN wget -q https://github.com/formancehq/flows/releases/download/${ORCHESTRATION_VERSION}/openapi.yaml -O orchestration.openapi.yaml
4646

4747
WORKDIR /src/releases
4848
RUN npm run build
49-
RUN jq -s '.[0] * .[1]' build/generate.json openapi-overlay.json > build/latest.json
49+
RUN jq -s '.[0] * .[1] | del(.components.schemas.V2QueryParams.properties.sort."$ref")' build/generate.json openapi-overlay.json > build/latest.json
5050
ARG version=v0.0.0
5151
IF [ "$version" = "v0.0.0" ]
5252
RUN sed -i 's/SDK_VERSION/v0.0.0/g' build/latest.json

releases/openapi-overlay.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,18 @@
33
"x-speakeasy-errors": {
44
"statusCodes": ["default"]
55
}
6+
},
7+
"components": {
8+
"schemas": {
9+
"V2QueryParams": {
10+
"properties": {
11+
"sort": {
12+
"type": "string",
13+
"description": "Sort results using a field name and order (ascending or descending).\nFormat: `<field>:<order>`, where `<field>` is the field name and `<order>` is either `asc` or `desc`.\n",
14+
"example": "id:desc"
15+
}
16+
}
17+
}
18+
}
619
}
720
}

0 commit comments

Comments
 (0)