Skip to content

Commit

Permalink
feat: refine widdershins parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 23, 2024
1 parent bec7c80 commit 689c60d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 1 addition & 15 deletions docs/api/README.md
Original file line number Diff line number Diff line change
@@ -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

---

<!-- Generator: Widdershins v4.0.1 -->

<h1 id="ledger-api">Ledger API vLEDGER_VERSION</h1>
<h1 id="ledger-api">Ledger API v2</h1>

> Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Expand Down
2 changes: 1 addition & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.3
info:
title: Ledger API
contact: {}
version: LEDGER_VERSION
version: v1
servers:
- url: http://localhost:8080/
paths:
Expand Down
2 changes: 1 addition & 1 deletion openapi/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.3
info:
title: Ledger API
contact: {}
version: LEDGER_VERSION
version: v1
paths:
/_info:
get:
Expand Down
2 changes: 1 addition & 1 deletion openapi/v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.3
info:
title: Ledger API
contact: {}
version: LEDGER_VERSION
version: v2
servers:
- url: http://localhost:8080/
paths:
Expand Down
8 changes: 4 additions & 4 deletions pkg/client/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
go:
version: 0.4.9
version: 0.4.10
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand Down
6 changes: 3 additions & 3 deletions pkg/client/formance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
}
Expand Down

0 comments on commit 689c60d

Please sign in to comment.