Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: swagger reference & client regeneration #70

Merged
merged 4 commits into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions client/.openapi-generator-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
test/
2 changes: 2 additions & 0 deletions client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ configuration.go
docs/BankingCircleConfig.md
docs/ConnectorBaseInfo.md
docs/ConnectorTaskBase.md
docs/Connectors.md
docs/CurrencyCloudConfig.md
docs/DummyPayConfig.md
docs/GetPaymentResponse.md
Expand All @@ -29,6 +30,7 @@ go.sum
model_banking_circle_config.go
model_connector_base_info.go
model_connector_task_base.go
model_connectors.go
model_currency_cloud_config.go
model_dummy_pay_config.go
model_get_payment_response.go
Expand Down
3 changes: 2 additions & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ go get golang.org/x/net/context
Put the package under your project folder and add the following in import:

```golang
import client "github.com/numary/payments/client"
import client "github.com/formancehq/payments/client"
```

To use a proxy, set the environment variable `HTTP_PROXY`:
Expand Down Expand Up @@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
- [BankingCircleConfig](docs/BankingCircleConfig.md)
- [ConnectorBaseInfo](docs/ConnectorBaseInfo.md)
- [ConnectorTaskBase](docs/ConnectorTaskBase.md)
- [Connectors](docs/Connectors.md)
- [CurrencyCloudConfig](docs/CurrencyCloudConfig.md)
- [DummyPayConfig](docs/DummyPayConfig.md)
- [GetPaymentResponse](docs/GetPaymentResponse.md)
Expand Down
30 changes: 14 additions & 16 deletions client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ paths:
name: connector
required: true
schema:
enum:
- stripe
$ref: '#/components/schemas/Connectors'
style: simple
responses:
"204":
Expand All @@ -126,12 +125,7 @@ paths:
name: connector
required: true
schema:
enum:
- stripe
- dummypay
- wise
- modulr
- currencycloud
$ref: '#/components/schemas/Connectors'
style: simple
requestBody:
content:
Expand All @@ -156,8 +150,7 @@ paths:
name: connector
required: true
schema:
enum:
- stripe
$ref: '#/components/schemas/Connectors'
style: simple
responses:
"200":
Expand All @@ -181,8 +174,7 @@ paths:
name: connector
required: true
schema:
enum:
- stripe
$ref: '#/components/schemas/Connectors'
style: simple
responses:
"204":
Expand All @@ -201,8 +193,7 @@ paths:
name: connector
required: true
schema:
enum:
- stripe
$ref: '#/components/schemas/Connectors'
style: simple
responses:
"200":
Expand Down Expand Up @@ -232,8 +223,7 @@ paths:
name: connector
required: true
schema:
enum:
- stripe
$ref: '#/components/schemas/Connectors'
style: simple
- description: The task id
example: task1
Expand Down Expand Up @@ -277,6 +267,14 @@ paths:
- Payments
components:
schemas:
Connectors:
enum:
- STRIPE
- DUMMY-PAY
- SIE
- MODULR
- CURRENCY-CLOUD
- BANKING-CIRCLE
ConnectorConfig:
oneOf:
- $ref: '#/components/schemas/StripeConfig'
Expand Down
Loading