Skip to content

Commit 6f62afe

Browse files
authored
Apply changes to the openapi file (#1187)
1 parent 4e2a321 commit 6f62afe

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

openapi.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ components:
5050
type: string
5151
description: The amount of tokens paid per byte per second per slot to hosts the client is willing to pay
5252

53+
CollateralPerByte:
54+
type: string
55+
description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
56+
5357
Duration:
5458
type: integer
5559
format: int64
@@ -320,8 +324,7 @@ components:
320324
default: 1
321325
minimum: 1
322326
collateralPerByte:
323-
type: string
324-
description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots
327+
$ref: "#/components/schemas/CollateralPerByte"
325328
expiry:
326329
type: integer
327330
format: int64
@@ -351,6 +354,8 @@ components:
351354
$ref: "#/components/schemas/ProofProbability"
352355
pricePerBytePerSecond:
353356
$ref: "#/components/schemas/PricePerBytePerSecond"
357+
collateralPerByte:
358+
$ref: "#/components/schemas/CollateralPerByte"
354359
maxSlotLoss:
355360
type: integer
356361
format: int64
@@ -392,7 +397,7 @@ components:
392397
description: Description of the Request's state
393398
enum:
394399
- cancelled
395-
- error
400+
- errored
396401
- failed
397402
- finished
398403
- pending
@@ -586,6 +591,8 @@ paths:
586591
text/plain:
587592
schema:
588593
type: string
594+
"422":
595+
description: The mimetype of the filename is invalid
589596
"500":
590597
description: Well it was bad-bad and the upload did not work out
591598

redocly.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
extends:
2+
- recommended
3+
4+
rules:
5+
info-license: off
6+
no-required-schema-properties-undefined: error
7+
no-server-example.com: off

0 commit comments

Comments
 (0)