From 4400c4045153d4099334c19c598dd2d011d8cdaf Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Tue, 26 Mar 2024 10:43:42 -0300 Subject: [PATCH 1/6] fix: added params required to api get objects --- storage.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/storage.yaml b/storage.yaml index f6a4a9a..1cfe4de 100644 --- a/storage.yaml +++ b/storage.yaml @@ -107,13 +107,13 @@ paths: schema: type: string required: true - - name: page + - name: continuation_token required: false in: query - description: A page number within the paginated result set. + description: Token for next page. schema: - type: integer - - name: page_size + type: string + - name: max_object_count required: false in: query description: Number of results to return per page. @@ -491,6 +491,10 @@ components: nullable: true format: uri example: http://api.example.org/accounts/?page=2 + continuation_token: + type: string + nullable: true + example: http://api.example.org/accounts?continuam_token=asdfasdfadsfdsfadsf results: type: array items: From 0294b3a76fbdabd7637d46a7dd226100870058b7 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Tue, 26 Mar 2024 11:04:28 -0300 Subject: [PATCH 2/6] fix: removed fields property --- storage.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/storage.yaml b/storage.yaml index 1cfe4de..b916bf2 100644 --- a/storage.yaml +++ b/storage.yaml @@ -493,8 +493,6 @@ components: example: http://api.example.org/accounts/?page=2 continuation_token: type: string - nullable: true - example: http://api.example.org/accounts?continuam_token=asdfasdfadsfdsfadsf results: type: array items: From 63e25f60d42f28e0adc2fc617e9729513eca8831 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Tue, 26 Mar 2024 11:46:08 -0300 Subject: [PATCH 3/6] chore: required lint --- storage.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage.yaml b/storage.yaml index b916bf2..98037df 100644 --- a/storage.yaml +++ b/storage.yaml @@ -493,6 +493,9 @@ components: example: http://api.example.org/accounts/?page=2 continuation_token: type: string + nullable: true + maxLength: 200 + minLength: 10 results: type: array items: From 479c815df2cb9edd5f7095a31146076508e4739b Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Tue, 26 Mar 2024 11:55:04 -0300 Subject: [PATCH 4/6] chore: required lint missing pattern --- storage.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/storage.yaml b/storage.yaml index 98037df..d2ba0c7 100644 --- a/storage.yaml +++ b/storage.yaml @@ -496,6 +496,7 @@ components: nullable: true maxLength: 200 minLength: 10 + pattern: '.*' results: type: array items: From 4665ae230459eb6b9cb5d890ba04e13468a511b4 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Tue, 26 Mar 2024 20:37:20 -0300 Subject: [PATCH 5/6] fix: added body request update bucket of the edge storage --- storage.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/storage.yaml b/storage.yaml index d2ba0c7..155eb09 100644 --- a/storage.yaml +++ b/storage.yaml @@ -335,6 +335,11 @@ paths: required: true tags: - storage + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BucketUpdate' security: - tokenAuth: [] responses: @@ -422,6 +427,13 @@ components: required: - edge_access - name + BucketUpdate: + type: object + properties: + edge_access: + $ref: '#/components/schemas/EdgeAccessEnum' + required: + - edge_access BucketObject: type: object properties: From 7cc92abd7339fdf90ea05688fb3246a75ec88e15 Mon Sep 17 00:00:00 2001 From: maxwelbm Date: Wed, 27 Mar 2024 08:15:04 -0300 Subject: [PATCH 6/6] fix: previously only got the error '406 Not Acceptable' adjusted for more content types --- storage.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/storage.yaml b/storage.yaml index 155eb09..f0aae9b 100644 --- a/storage.yaml +++ b/storage.yaml @@ -165,10 +165,19 @@ paths: responses: '200': content: - application/octet-stream: - schema: - type: string - format: binary + text/html: {} + application/json: {} + application/xml: {} + text/plain: {} + image/jpeg: {} + image/png: {} + image/gif: {} + video/mp4: {} + audio/mpeg: {} + application/pdf: {} + application/javascript: {} + text/css: {} + application/octet-stream: {} description: '' '400': description: Bad Request