From 886e9ab51180e275fc77ef885ea29fb044c6b52a Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Thu, 17 Jun 2021 19:01:23 -0700 Subject: [PATCH] Update WebhookDataBase Swagger definition (#2578) close #2577 --- .../wwwroot/swagger/v1/swagger.template.webhooks.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/wwwroot/swagger/v1/swagger.template.webhooks.json b/BTCPayServer/wwwroot/swagger/v1/swagger.template.webhooks.json index 4ad9943fb..313cc3c91 100644 --- a/BTCPayServer/wwwroot/swagger/v1/swagger.template.webhooks.json +++ b/BTCPayServer/wwwroot/swagger/v1/swagger.template.webhooks.json @@ -571,13 +571,16 @@ "description": "Which event should be received by this endpoint", "properties": { "everything": { - "type": "string", + "type": "boolean", "description": "If true, the endpoint will receive all events related to the store.", "nullable": false, "default": true }, "specificEvents": { - "type": "string", + "type": "array", + "items": { + "type": "string" + }, "description": "If `everything` is false, the specific events that the endpoint is interested in. Current events are: `InvoiceCreated`, `InvoiceReceivedPayment`, `InvoiceProcessing`, `InvoiceExpired`, `InvoiceSettled`, `InvoiceInvalid`.", "nullable": false }