Skip to content

Commit 76b2af6

Browse files
authored
Make all 2xx responses require data in the return (#272)
- this was overlooked before. this change accurately reflects the API.
1 parent a24f2db commit 76b2af6

File tree

136 files changed

+387
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+387
-3
lines changed

components/schemas/infrastructure/servers/ServerTags.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
title: ServerTags
22
description: Tags for a given server.
3-
type: object
3+
type: object
4+
required:
5+
- data
46
properties:
57
data:
68
type: array

public/paths/accounts/account.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ patch:
5151
schema:
5252
title: "AccountUpdateResponse"
5353
type: object
54+
required:
55+
- data
5456
properties:
5557
data:
5658
$ref: ../../../components/schemas/accounts/Account.yml

public/paths/accounts/invite.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ patch:
3434
schema:
3535
title: "UpdateAccountInviteResponse"
3636
type: object
37+
required:
38+
- data
3739
properties:
3840
data:
3941
$ref: ../../../components/schemas/hubs/HubMembership.yml

public/paths/accounts/invites.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ get:
4949
schema:
5050
title: "AccountInvitesResponse"
5151
type: object
52+
required:
53+
- data
5254
properties:
5355
data:
5456
type: array

public/paths/accounts/logins.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ get:
1818
schema:
1919
title: "AccountLoginsResponse"
2020
type: object
21+
required:
22+
- data
2123
properties:
2224
data:
2325
type: array

public/paths/accounts/memberships.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ get:
1414
schema:
1515
title: "AccountMembershipsResponse"
1616
type: object
17+
required:
18+
- data
1719
properties:
1820
data:
1921
type: array

public/paths/accounts/resetPassword.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ post:
4040
schema:
4141
title: "ResetPasswordApiResponse"
4242
type: object
43+
required:
44+
- data
4345
properties:
4446
data:
4547
type: object

public/paths/accounts/twoFa/disable.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ post:
2525
schema:
2626
title: TwofaDisableResponse
2727
type: object
28+
required:
29+
- data
2830
properties:
2931
data:
3032
$ref: ../../../../components/schemas/accounts/TwoFaDisableResponse.yml

public/paths/accounts/twoFa/recover.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ post:
3535
schema:
3636
title: TwofaDisableResponse
3737
type: object
38+
required:
39+
- data
3840
properties:
3941
data:
4042
$ref: ../../../../components/schemas/accounts/TwoFaDisableResponse.yml

public/paths/accounts/twoFa/setup.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ post:
4545
schema:
4646
title: TwofaSetupResponse
4747
type: object
48+
required:
49+
- data
4850
properties:
4951
data:
5052
$ref: ../../../../components/schemas/accounts/TwoFaSetupResponse.yml

public/paths/accounts/updatePassword.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ patch:
2727
schema:
2828
title: "UpdatePasswordApiResponse"
2929
type: object
30+
required:
31+
- data
3032
properties:
3133
data:
3234
$ref: ../../../components/schemas/accounts/Account.yml

public/paths/announcements/announcements.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ get:
1818
schema:
1919
title: "AnnouncementsListResponse"
2020
type: object
21+
required:
22+
- data
2123
properties:
2224
data:
2325
type: array

public/paths/billing/credits/credit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ get:
1919
schema:
2020
title: FetchBillingCreditReturn
2121
type: object
22+
required:
23+
- data
2224
properties:
2325
data:
2426
$ref: ../../../../components/schemas/billing/credits/Credit.yml

public/paths/billing/credits/credits.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ get:
3737
schema:
3838
title: "ListBillingCreditsReturn"
3939
type: object
40+
required:
41+
- data
4042
properties:
4143
data:
4244
type: array

public/paths/billing/invoices/invoice.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ get:
3434
schema:
3535
title: FetchBillingInvoiceReturn
3636
type: object
37+
required:
38+
- data
3739
properties:
3840
data:
3941
$ref: ../../../../components/schemas/billing/invoices/Invoice.yml

public/paths/billing/invoices/invoices.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ get:
5252
schema:
5353
title: "ListBillingInvoicesReturn"
5454
type: object
55+
required:
56+
- data
5557
properties:
5658
data:
5759
type: array

public/paths/billing/invoices/tasks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ post:
3333
schema:
3434
title: "TaskResponse"
3535
type: object
36+
required:
37+
- data
3638
properties:
3739
data:
3840
$ref: ../../../../components/schemas/jobs/TaskDescriptor.yml

public/paths/billing/methods/method.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ get:
1919
schema:
2020
title: FetchBillingMethodReturn
2121
type: object
22+
required:
23+
- data
2224
properties:
2325
data:
2426
$ref: ../../../../components/schemas/billing/methods/Method.yml
@@ -62,6 +64,8 @@ patch:
6264
schema:
6365
title: UpdateBillingMethodReturn
6466
type: object
67+
required:
68+
- data
6569
properties:
6670
data:
6771
$ref: ../../../../components/schemas/billing/methods/Method.yml
@@ -88,6 +92,8 @@ delete:
8892
schema:
8993
title: "TaskResponse"
9094
type: object
95+
required:
96+
- data
9197
properties:
9298
data:
9399
$ref: ../../../../components/schemas/jobs/TaskDescriptor.yml

public/paths/billing/methods/methods.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ get:
1616
schema:
1717
title: "ListBillingMethodsReturn"
1818
type: object
19+
required:
20+
- data
1921
properties:
2022
data:
2123
type: array
@@ -82,6 +84,8 @@ post:
8284
schema:
8385
title: CreateBillingMethodReturn
8486
type: object
87+
required:
88+
- data
8589
properties:
8690
data:
8791
$ref: ../../../../components/schemas/billing/methods/Method.yml

public/paths/billing/orders/order.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ get:
1919
schema:
2020
title: "FetchBillingOrderResponse"
2121
type: object
22+
required:
23+
- data
2224
properties:
2325
data:
2426
$ref: ../../../../components/schemas/billing/orders/Order.yml
@@ -68,6 +70,8 @@ patch:
6870
schema:
6971
title: "BillingOrderUpdateResponse"
7072
type: object
73+
required:
74+
- data
7175
properties:
7276
data:
7377
$ref: ../../../../components/schemas/billing/orders/Order.yml

public/paths/billing/orders/orders.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ get:
4545
schema:
4646
title: "ListBillingOrdersResponse"
4747
type: object
48+
required:
49+
- data
4850
properties:
4951
data:
5052
type: array
@@ -92,6 +94,8 @@ post:
9294
schema:
9395
title: "OrderResource"
9496
type: object
97+
required:
98+
- data
9599
properties:
96100
data:
97101
$ref: ../../../../components/schemas/billing/BillingOrder.yml

public/paths/billing/orders/tasks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ post:
3434
schema:
3535
title: "TaskResponse"
3636
type: object
37+
required:
38+
- data
3739
properties:
3840
data:
3941
$ref: ../../../../components/schemas/jobs/TaskDescriptor.yml

public/paths/billing/plans/support.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ get:
1616
schema:
1717
title: ListBillingSupportPlanReturn
1818
type: object
19+
required:
20+
- data
1921
properties:
2022
data:
2123
type: array

public/paths/billing/plans/tiers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ get:
1313
schema:
1414
title: "ListTiersResponse"
1515
type: object
16+
required:
17+
- data
1618
properties:
1719
data:
1820
type: array

public/paths/billing/services/overages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ get:
1616
schema:
1717
title: ListBillingOveragesResponse
1818
type: object
19+
required:
20+
- data
1921
properties:
2022
data:
2123
type: array

public/paths/billing/services/service.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ get:
1919
schema:
2020
title: "ListBillingServicesResponse"
2121
type: object
22+
required:
23+
- data
2224
properties:
2325
data:
2426
$ref: ../../../../components/schemas/billing/Service.yml

public/paths/billing/services/services.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ get:
1616
schema:
1717
title: "ListBillingServicesResponse"
1818
type: object
19+
required:
20+
- data
1921
properties:
2022
data:
2123
type: array

public/paths/channels/hub.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ get:
1313
schema:
1414
title: "HubNotificationAuthResponse"
1515
type: object
16+
required:
17+
- data
1618
properties:
1719
data:
1820
$ref: ../../../components/schemas/websocket-auth/HubNotificationToken.yml

public/paths/channels/instance-console.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ get:
2525
schema:
2626
title: "InstanceConsoleAuthResponse"
2727
type: object
28+
required:
29+
- data
2830
properties:
2931
data:
3032
$ref: ../../../components/schemas/websocket-auth/InstanceConsoleAuth.yml

public/paths/containers/backups/backup.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ get:
2525
schema:
2626
title: SingleBackupReturn
2727
type: object
28+
required:
29+
- data
2830
properties:
2931
data:
3032
$ref: ../../../../components/schemas/containers/backups/Backup.yml
@@ -57,6 +59,8 @@ delete:
5759
schema:
5860
title: "TaskResponse"
5961
type: object
62+
required:
63+
- data
6064
properties:
6165
data:
6266
$ref: ../../../../components/schemas/jobs/TaskDescriptor.yml

public/paths/containers/backups/backupLogs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ get:
2525
schema:
2626
title: EnvironmentBackupsReturn
2727
type: object
28+
required:
29+
- data
2830
properties:
2931
data:
3032
type: array

public/paths/containers/backups/backups.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ get:
2121
schema:
2222
title: ConatainerBackupListResponse
2323
type: object
24+
required:
25+
- data
2426
properties:
2527
data:
2628
type: array

public/paths/containers/backups/tasks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ post:
4949
schema:
5050
title: "TaskResponse"
5151
type: object
52+
required:
53+
- data
5254
properties:
5355
data:
5456
$ref: ../../../../components/schemas/jobs/TaskDescriptor.yml

public/paths/containers/compatibleImages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ get:
2121
schema:
2222
title: CompatibleImagesReponse
2323
type: object
24+
required:
25+
- data
2426
properties:
2527
data:
2628
type: array

public/paths/containers/container.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ get:
5555
schema:
5656
title: "ContainerResponse"
5757
type: object
58+
required:
59+
- data
5860
properties:
5961
data:
6062
$ref: ../../../components/schemas/containers/Container.yml
@@ -108,6 +110,8 @@ patch:
108110
schema:
109111
title: "ContainerUpdateResponse"
110112
type: object
113+
required:
114+
- data
111115
properties:
112116
data:
113117
$ref: ../../../components/schemas/containers/Container.yml
@@ -133,6 +137,8 @@ delete:
133137
application/json:
134138
schema:
135139
type: object
140+
required:
141+
- data
136142
properties:
137143
data:
138144
$ref: ../../../components/schemas/jobs/TaskDescriptor.yml

public/paths/containers/containers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ get:
113113
schema:
114114
title: "ListContainersResponse"
115115
type: object
116+
required:
117+
- data
116118
properties:
117119
data:
118120
type: array

0 commit comments

Comments
 (0)