From 242cc811cc2f27953635b490e9d47849cc234b4e Mon Sep 17 00:00:00 2001 From: Geoffrey Ragot Date: Thu, 3 Oct 2024 17:39:00 +0200 Subject: [PATCH] feat: refine widdershins parameter --- Earthfile | 2 +- docs/api/README.md | 16 +--------------- openapi.yaml | 2 +- openapi/v1.yaml | 2 +- openapi/v2.yaml | 2 +- pkg/client/.speakeasy/gen.lock | 8 ++++---- pkg/client/.speakeasy/gen.yaml | 2 +- pkg/client/formance.go | 6 +++--- 8 files changed, 13 insertions(+), 27 deletions(-) diff --git a/Earthfile b/Earthfile index cbcc1f80f..7bfcd143d 100644 --- a/Earthfile +++ b/Earthfile @@ -168,7 +168,7 @@ openapi-markdown: FROM node:20-alpine RUN npm install -g widdershins COPY openapi/v2.yaml openapi.yaml - RUN widdershins openapi.yaml -o README.md --search false --language_tabs 'http:HTTP' --summary + RUN widdershins openapi.yaml -o README.md --search false --language_tabs 'http:HTTP' --summary --omitHeader SAVE ARTIFACT README.md AS LOCAL docs/api/README.md tidy: diff --git a/docs/api/README.md b/docs/api/README.md index 13dbe2824..e74cd8e4a 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -1,20 +1,6 @@ ---- -title: Ledger API vLEDGER_VERSION -language_tabs: - - http: HTTP -language_clients: - - http: "" -toc_footers: [] -includes: [] -search: false -highlight_theme: darkula -headingLevel: 2 - ---- - -

Ledger API vLEDGER_VERSION

+

Ledger API v2

> Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu. diff --git a/openapi.yaml b/openapi.yaml index 8b3c9f2c3..44b14252f 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.3 info: title: Ledger API contact: {} - version: LEDGER_VERSION + version: v1 servers: - url: http://localhost:8080/ paths: diff --git a/openapi/v1.yaml b/openapi/v1.yaml index ff9129b4a..8edb64c2b 100644 --- a/openapi/v1.yaml +++ b/openapi/v1.yaml @@ -2,7 +2,7 @@ openapi: 3.0.3 info: title: Ledger API contact: {} - version: LEDGER_VERSION + version: v1 paths: /_info: get: diff --git a/openapi/v2.yaml b/openapi/v2.yaml index 7c3bdb980..15afce7ca 100644 --- a/openapi/v2.yaml +++ b/openapi/v2.yaml @@ -2,7 +2,7 @@ openapi: 3.0.3 info: title: Ledger API contact: {} - version: LEDGER_VERSION + version: v2 servers: - url: http://localhost:8080/ paths: diff --git a/pkg/client/.speakeasy/gen.lock b/pkg/client/.speakeasy/gen.lock index 7987cfee0..31fe3c481 100644 --- a/pkg/client/.speakeasy/gen.lock +++ b/pkg/client/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: a9ac79e1-e429-4ee3-96c4-ec973f19bec3 management: - docChecksum: 302ced639acd69d468571e054f1fd99a - docVersion: LEDGER_VERSION + docChecksum: 46b920c97720c2cf24009a8029141b0e + docVersion: v1 speakeasyVersion: 1.351.0 generationVersion: 2.384.1 - releaseVersion: 0.4.9 - configChecksum: ba631015bfe7d302c9826620e37eda7c + releaseVersion: 0.4.10 + configChecksum: 80adc8750c319f7d5486bd5211882798 features: go: additionalDependencies: 0.1.0 diff --git a/pkg/client/.speakeasy/gen.yaml b/pkg/client/.speakeasy/gen.yaml index 5f5190ec4..df23cf750 100644 --- a/pkg/client/.speakeasy/gen.yaml +++ b/pkg/client/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true go: - version: 0.4.9 + version: 0.4.10 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false clientServerStatusCodesAsErrors: true diff --git a/pkg/client/formance.go b/pkg/client/formance.go index e5bb45206..a5acc0edc 100644 --- a/pkg/client/formance.go +++ b/pkg/client/formance.go @@ -142,10 +142,10 @@ func New(opts ...SDKOption) *Formance { sdk := &Formance{ sdkConfiguration: sdkConfiguration{ Language: "go", - OpenAPIDocVersion: "LEDGER_VERSION", - SDKVersion: "0.4.9", + OpenAPIDocVersion: "v1", + SDKVersion: "0.4.10", GenVersion: "2.384.1", - UserAgent: "speakeasy-sdk/go 0.4.9 2.384.1 LEDGER_VERSION github.com/formancehq/stack/ledger/client", + UserAgent: "speakeasy-sdk/go 0.4.10 2.384.1 v1 github.com/formancehq/stack/ledger/client", Hooks: hooks.New(), }, }