Skip to content

Commit 8e2cd27

Browse files
refactor(docs): simplify header parameter definitions in /bytes endpoint
1 parent e5b93cc commit 8e2cd27

1 file changed

Lines changed: 6 additions & 31 deletions

File tree

openapi/Swarm.yaml

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -163,37 +163,12 @@ paths:
163163
tags:
164164
- Bytes
165165
parameters:
166-
- in: header
167-
schema:
168-
$ref: "SwarmCommon.yaml#/components/parameters/SwarmPostageBatchId"
169-
name: swarm-postage-batch-id
170-
required: true
171-
- in: header
172-
schema:
173-
$ref: "SwarmCommon.yaml#/components/parameters/SwarmTagParameter"
174-
name: swarm-tag
175-
required: false
176-
- in: header
177-
schema:
178-
$ref: "SwarmCommon.yaml#/components/parameters/SwarmPinParameter"
179-
name: swarm-pin
180-
required: false
181-
- in: header
182-
schema:
183-
$ref: "SwarmCommon.yaml#/components/parameters/SwarmDeferredUpload"
184-
name: swarm-deferred-upload
185-
required: false
186-
- in: header
187-
schema:
188-
$ref: "SwarmCommon.yaml#/components/parameters/SwarmEncryptParameter"
189-
name: swarm-encrypt
190-
required: false
191-
- in: header
192-
schema:
193-
$ref: "SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter"
194-
name: swarm-redundancy-level
195-
required: false
196-
166+
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmPostageBatchId"
167+
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmTagParameter"
168+
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmPinParameter"
169+
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmDeferredUpload"
170+
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmEncryptParameter"
171+
- $ref: "SwarmCommon.yaml#/components/parameters/SwarmRedundancyLevelParameter"
197172
requestBody:
198173
content:
199174
application/octet-stream:

0 commit comments

Comments
 (0)