From 859e2f044f6068c492bf463a5b02cbed1ab942ff Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Sun, 17 Jul 2022 17:43:57 +0200 Subject: [PATCH] Exclude providers API from swagger since we don't own the API --- api/config/schema.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/config/schema.py b/api/config/schema.py index 984ff5569..4a0ff9ecd 100644 --- a/api/config/schema.py +++ b/api/config/schema.py @@ -45,6 +45,8 @@ def custom_preprocessing_hook(endpoints): # your modifications to the list of operations that are exposed in the schema api_type = os.environ["API_TYPE"] for (path, path_regex, method, callback) in endpoints: + if path.startswith("/api/v1/providers"): + continue if path.startswith(f"/api/{api_type}"): filtered.append((path, path_regex, method, callback)) return filtered