From 6f62afef7520060d385bd22aea97ee51533fe536 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Fri, 4 Apr 2025 14:58:23 +0200 Subject: [PATCH] Apply changes to the openapi file (#1187) --- openapi.yaml | 13 ++++++++++--- redocly.yaml | 7 +++++++ 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 redocly.yaml diff --git a/openapi.yaml b/openapi.yaml index 6a8e8b76..551e2fe2 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -50,6 +50,10 @@ components: type: string description: The amount of tokens paid per byte per second per slot to hosts the client is willing to pay + CollateralPerByte: + type: string + description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots + Duration: type: integer format: int64 @@ -320,8 +324,7 @@ components: default: 1 minimum: 1 collateralPerByte: - type: string - description: Number as decimal string that represents how much collateral per byte is asked from hosts that wants to fill a slots + $ref: "#/components/schemas/CollateralPerByte" expiry: type: integer format: int64 @@ -351,6 +354,8 @@ components: $ref: "#/components/schemas/ProofProbability" pricePerBytePerSecond: $ref: "#/components/schemas/PricePerBytePerSecond" + collateralPerByte: + $ref: "#/components/schemas/CollateralPerByte" maxSlotLoss: type: integer format: int64 @@ -392,7 +397,7 @@ components: description: Description of the Request's state enum: - cancelled - - error + - errored - failed - finished - pending @@ -586,6 +591,8 @@ paths: text/plain: schema: type: string + "422": + description: The mimetype of the filename is invalid "500": description: Well it was bad-bad and the upload did not work out diff --git a/redocly.yaml b/redocly.yaml new file mode 100644 index 00000000..78fa9e60 --- /dev/null +++ b/redocly.yaml @@ -0,0 +1,7 @@ +extends: + - recommended + +rules: + info-license: off + no-required-schema-properties-undefined: error + no-server-example.com: off \ No newline at end of file