From 26c0c888828adc170c68d5f4a05da8bb7a96551d Mon Sep 17 00:00:00 2001 From: Alexandre Franke Date: Fri, 1 Oct 2021 18:54:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20OpenAPI=20definition=20gen?= =?UTF-8?q?eration=20(#3418)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexandre Franke Co-authored-by: Alexandre Franke --- scripts/dump-swagger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dump-swagger.py b/scripts/dump-swagger.py index c8e9d8d6..bfe392c9 100755 --- a/scripts/dump-swagger.py +++ b/scripts/dump-swagger.py @@ -71,7 +71,7 @@ output = { # The servers value will be picked up by RapiDoc to provide a way # to switch API servers. Useful when one wants to test compliance # of their server with the API. - "servers": { + "servers": [{ "url": "https://{homeserver_address}/", "variables": { "homeserver_address": { @@ -79,7 +79,7 @@ output = { "description": "The base URL for your homeserver", } } - }, + }], "schemes": ["https"], "info": { "title": "Matrix Client-Server API",