Skip to content

Commit 017c60f

Browse files
committed
minor
1 parent 76b7381 commit 017c60f

File tree

1 file changed

+42
-16
lines changed

1 file changed

+42
-16
lines changed

services/storage/openapi.json

Lines changed: 42 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -795,17 +795,13 @@
795795
"content": {
796796
"application/json": {
797797
"schema": {
798-
"type": "array",
799-
"items": {
800-
"$ref": "#/components/schemas/UploadedPart"
801-
},
802-
"title": "Parts"
798+
"$ref": "#/components/schemas/FileUploadCompletionBody"
803799
}
804800
}
805801
}
806802
},
807803
"responses": {
808-
"200": {
804+
"202": {
809805
"description": "Successful Response",
810806
"content": {
811807
"application/json": {
@@ -944,18 +940,18 @@
944940
"title": "User Id",
945941
"minimum": 0
946942
}
947-
},
948-
{
949-
"name": "link_id",
950-
"in": "query",
951-
"required": true,
952-
"schema": {
953-
"type": "string",
954-
"pattern": "^(api|([0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}))\\/([0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12})\\/(.+)$",
955-
"title": "Link Id"
956-
}
957943
}
958944
],
945+
"requestBody": {
946+
"required": true,
947+
"content": {
948+
"application/json": {
949+
"schema": {
950+
"$ref": "#/components/schemas/SoftCopyBody"
951+
}
952+
}
953+
}
954+
},
959955
"responses": {
960956
"200": {
961957
"description": "Successful Response",
@@ -2025,6 +2021,22 @@
20252021
],
20262022
"title": "FileUploadCompleteState"
20272023
},
2024+
"FileUploadCompletionBody": {
2025+
"properties": {
2026+
"parts": {
2027+
"items": {
2028+
"$ref": "#/components/schemas/UploadedPart"
2029+
},
2030+
"type": "array",
2031+
"title": "Parts"
2032+
}
2033+
},
2034+
"type": "object",
2035+
"required": [
2036+
"parts"
2037+
],
2038+
"title": "FileUploadCompletionBody"
2039+
},
20282040
"FileUploadLinks": {
20292041
"properties": {
20302042
"abort_upload": {
@@ -2243,6 +2255,20 @@
22432255
],
22442256
"title": "S3Settings"
22452257
},
2258+
"SoftCopyBody": {
2259+
"properties": {
2260+
"link_id": {
2261+
"type": "string",
2262+
"pattern": "^(api|([0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12}))\\/([0-9a-fA-F]{8}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{4}-?[0-9a-fA-F]{12})\\/(.+)$",
2263+
"title": "Link Id"
2264+
}
2265+
},
2266+
"type": "object",
2267+
"required": [
2268+
"link_id"
2269+
],
2270+
"title": "SoftCopyBody"
2271+
},
22462272
"StorageQueryParamsBase": {
22472273
"properties": {
22482274
"user_id": {

0 commit comments

Comments
 (0)