From aafd1f2bf027b58016c233b5b22a13bce5b3a734 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 10 Jul 2020 02:02:48 +0200 Subject: [PATCH] Replace Pin.depth with Pin.mode string enum This enables arbitrary modes of pinning to be added in the future. Third type name 'pinset' could represent object storing all local pins. --- ipfs-pinning-service.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ipfs-pinning-service.yaml b/ipfs-pinning-service.yaml index 6752831..cb6ffea 100644 --- a/ipfs-pinning-service.yaml +++ b/ipfs-pinning-service.yaml @@ -228,12 +228,14 @@ components: cid: description: CID to be pinned type: string - depth: - description: Defines how deep the DAG should be pinned (-1 recursive, 0 direct) - type: integer - format: int32 - default: -1 - minimum: -1 + mode: + description: Defines the mode of pin operation + type: string + enum: + - direct + - recursive + - pinset + default: recursive meta: $ref: '#/components/schemas/Meta'