Skip to content

Commit

Permalink
upgrade ndc-http v0.7.0 and openapi v1407
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiasac committed Dec 13, 2024
1 parent f8e874a commit bf0b9af
Show file tree
Hide file tree
Showing 1,010 changed files with 229,887 additions and 4,396 deletions.
4,397 changes: 3,909 additions & 488 deletions config/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ services:

stripe-mock:
# https://hub.docker.com/r/stripe/stripe-mock/tags
image: stripe/stripe-mock:v0.186.0
image: stripe/stripe-mock:v0.192.0
ports:
- "12111-12112:12111-12112"
2 changes: 1 addition & 1 deletion generator/config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file: https://raw.githubusercontent.com/stripe/openapi/v1318/openapi/spec3.json
file: https://raw.githubusercontent.com/stripe/openapi/v1407/openapi/spec3.json
spec: oas3
envPrefix: STRIPE
trimPrefix: /v1
8 changes: 6 additions & 2 deletions testdata/mock/mutation/DeleteAccountsAccount/expected.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"operation_results": [
{
"result": { "deleted": true, "id": "SfiamTKlet", "object": "account" },
"result": {
"deleted": true,
"id": "SfiamTKlet",
"object": "account"
},
"type": "procedure"
}
]
}
}
2 changes: 1 addition & 1 deletion testdata/mock/mutation/DeleteAccountsAccount/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"operation_results": [
{
"type": "procedure",
"result": {
"deleted": true,
"id": "JJ5li8hjdY",
"object": "bank_account"
}
},
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"operation_results": [
{
"result": { "deleted": true, "id": "K7G8QSIZvx", "object": "person" },
"result": {
"deleted": true,
"id": "K7G8QSIZvx",
"object": "person"
},
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"operation_results": [
{
"result": { "deleted": true, "id": "GaOeQU0rcQ", "object": "person" },
"result": {
"deleted": true,
"id": "GaOeQU0rcQ",
"object": "person"
},
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"type": "procedure"
}
]
}
}
8 changes: 6 additions & 2 deletions testdata/mock/mutation/DeleteCouponsCoupon/expected.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"operation_results": [
{
"result": { "deleted": true, "id": "qAZKrG1CUT", "object": "coupon" },
"result": {
"deleted": true,
"id": "qAZKrG1CUT",
"object": "coupon"
},
"type": "procedure"
}
]
}
}
8 changes: 6 additions & 2 deletions testdata/mock/mutation/DeleteCustomersCustomer/expected.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"operation_results": [
{
"result": { "deleted": true, "id": "ggwZwtzeIx", "object": "customer" },
"result": {
"deleted": true,
"id": "ggwZwtzeIx",
"object": "customer"
},
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"operation_results": [
{
"type": "procedure",
"result": {
"business_profile": {
"annual_revenue": null,
Expand Down Expand Up @@ -33,14 +32,14 @@
"data": [
{
"account_holder_name": "Jane Austen",
"account_holder_type": "individual",
"account_holder_type": "company",
"account_type": null,
"bank_name": "STRIPE TEST BANK",
"country": "US",
"currency": "usd",
"customer": null,
"fingerprint": "1JWtPxqbdX5Gamtz",
"id": "ba_1OPoumJN5vQBdWExwmpTeNeE",
"fingerprint": "AuoSJ18zsVWV9SPc",
"id": "ba_1PgagAB7WZ01zgkWr3DySp2Q",
"last4": "6789",
"metadata": {},
"object": "bank_account",
Expand Down Expand Up @@ -146,7 +145,8 @@
"user_agent": null
},
"type": "standard"
}
},
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
"type": "procedure",
"name": "DeleteCustomersCustomerBankAccountsId",
"arguments": {
"expand": ["customer"],
"expand": [
"customer"
],
"customer": "X1bVAba7Sg",
"id": "sET2Jz3QD6"
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"operation_results": [
{
"type": "procedure",
"result": {
"business_profile": {
"annual_revenue": null,
Expand Down Expand Up @@ -33,14 +32,14 @@
"data": [
{
"account_holder_name": "Jane Austen",
"account_holder_type": "individual",
"account_holder_type": "company",
"account_type": null,
"bank_name": "STRIPE TEST BANK",
"country": "US",
"currency": "usd",
"customer": null,
"fingerprint": "1JWtPxqbdX5Gamtz",
"id": "ba_1OPoumJN5vQBdWExwmpTeNeE",
"fingerprint": "AuoSJ18zsVWV9SPc",
"id": "ba_1PgagAB7WZ01zgkWr3DySp2Q",
"last4": "6789",
"metadata": {},
"object": "bank_account",
Expand Down Expand Up @@ -146,7 +145,8 @@
"user_agent": null
},
"type": "standard"
}
},
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
"type": "procedure",
"name": "DeleteCustomersCustomerCardsId",
"arguments": {
"expand": ["customer"],
"expand": [
"customer"
],
"customer": "NnTGZunBlY",
"id": "HZNBDQmWOw"
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"checkout_session": null,
"coupon": {
"amount_off": null,
"applies_to": { "products": [] },
"applies_to": {
"products": []
},
"created": 0,
"currency": null,
"currency_options": {},
Expand Down Expand Up @@ -33,4 +35,4 @@
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"operation_results": [
{
"type": "procedure",
"result": {
"business_profile": {
"annual_revenue": null,
Expand Down Expand Up @@ -33,14 +32,14 @@
"data": [
{
"account_holder_name": "Jane Austen",
"account_holder_type": "individual",
"account_holder_type": "company",
"account_type": null,
"bank_name": "STRIPE TEST BANK",
"country": "US",
"currency": "usd",
"customer": null,
"fingerprint": "1JWtPxqbdX5Gamtz",
"id": "ba_1OPoumJN5vQBdWExwmpTeNeE",
"fingerprint": "AuoSJ18zsVWV9SPc",
"id": "ba_1PgagAB7WZ01zgkWr3DySp2Q",
"last4": "6789",
"metadata": {},
"object": "bank_account",
Expand Down Expand Up @@ -146,7 +145,8 @@
"user_agent": null
},
"type": "standard"
}
},
"type": "procedure"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
"name": "DeleteCustomersCustomerSourcesId",
"arguments": {
"body": {
"expand": ["customer"]
"expand": [
"customer"
]
},
"customer": "PIeQadBsHz",
"id": "lZL6CaLOMi"
}
}
]
}
}
Loading

0 comments on commit bf0b9af

Please sign in to comment.