From 5d4d8a34224afe73f7c748079e7d34b900b88475 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 10 Feb 2022 17:09:36 +0900 Subject: [PATCH] Simplify swagger --- .../swagger/v1/swagger.template.invoices.json | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json b/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json index 8bed515ce..95fbf7e9e 100644 --- a/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json +++ b/BTCPayServer/wwwroot/swagger/v1/swagger.template.invoices.json @@ -640,11 +640,7 @@ "status": { "nullable": false, "description": "Mark an invoice as completed or invalid.", - "oneOf": [ - { - "$ref": "#/components/schemas/InvoiceStatusMark" - } - ] + "$ref": "#/components/schemas/InvoiceStatusMark" } } }, @@ -716,11 +712,7 @@ }, "checkout": { "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/CheckoutOptions" - } - ], + "$ref": "#/components/schemas/CheckoutOptions", "description": "Additional settings to customize the checkout flow" } } @@ -1004,11 +996,7 @@ "properties": { "speedPolicy": { "nullable": true, - "oneOf": [ - { - "$ref": "#/components/schemas/SpeedPolicy" - } - ], + "$ref": "#/components/schemas/SpeedPolicy", "description": "This is a risk mitigation parameter for the merchant to configure how they want to fulfill orders depending on the number of block confirmations for the transaction made by the consumer on the selected cryptocurrency" }, "paymentMethods": {