From cb6970c8110235e2b84015a4e2067d24b7a60958 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Tue, 11 Aug 2020 23:08:44 +0200 Subject: [PATCH] fix: single pin I/O in POST operations This removes arrays and replaces them with single object in places which were missed before when we made the switch to single ops. Context: https://github.com/ipfs/pinning-services-api-spec/pull/39#issuecomment-665274030 Closes #46 --- ipfs-pinning-service.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ipfs-pinning-service.yaml b/ipfs-pinning-service.yaml index 27634f4..1e9317f 100644 --- a/ipfs-pinning-service.yaml +++ b/ipfs-pinning-service.yaml @@ -181,7 +181,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PinResults' + $ref: '#/components/schemas/PinStatus' '400': $ref: '#/components/responses/BadRequest' '401': @@ -228,9 +228,7 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/Pin' + $ref: '#/components/schemas/Pin' responses: '202': description: Accepted