From b2310d0b7de65523e05049998aa1e17249ac0833 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.recursive boolean This simplifies Pin object to only support what currently exists. --- ipfs-pinning-service.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ipfs-pinning-service.yaml b/ipfs-pinning-service.yaml index 6752831..26d000b 100644 --- a/ipfs-pinning-service.yaml +++ b/ipfs-pinning-service.yaml @@ -228,12 +228,10 @@ 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 + recursive: + description: Defines if a DAG is pinned recursively, or only its root + type: boolean + default: true meta: $ref: '#/components/schemas/Meta'