File: 0001-Avoid-Swagger-UI.patch

package info (click to toggle)
python-wyoming 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 376 kB
  • sloc: python: 3,025; makefile: 3
file content (29 lines) | stat: -rw-r--r-- 864 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Edward Betts <edward@4angle.com>
Date: Mon, 15 Dec 2025 07:33:48 +0000
Subject: Avoid Swagger UI

---
 wyoming/http/shared.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/wyoming/http/shared.py b/wyoming/http/shared.py
index 0be48c5..81178f3 100644
--- a/wyoming/http/shared.py
+++ b/wyoming/http/shared.py
@@ -5,7 +5,6 @@ from pathlib import Path
 from typing import Union
 
 from flask import Flask, jsonify, redirect, request
-from swagger_ui import flask_api_doc  # pylint: disable=no-name-in-module
 
 from wyoming.client import AsyncClient
 from wyoming.info import Describe, Info
@@ -57,8 +56,4 @@ def get_app(
         """Return error as text."""
         return (f"{err.__class__.__name__}: {err}", 500)
 
-    flask_api_doc(
-        app, config_path=str(openapi_config_path), url_prefix="/api", title="API doc"
-    )
-
     return app