From cd76a9ec2a47ff572723ea14559ecc286404ee60 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Mon, 18 Jul 2022 10:29:20 +0200 Subject: [PATCH] Make v1 default api type for swagger generation --- api/config/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/config/schema.py b/api/config/schema.py index 4a0ff9ecd..556536909 100644 --- a/api/config/schema.py +++ b/api/config/schema.py @@ -43,7 +43,7 @@ class CustomApplicationTokenExt(OpenApiAuthenticationExtension): def custom_preprocessing_hook(endpoints): filtered = [] # your modifications to the list of operations that are exposed in the schema - api_type = os.environ["API_TYPE"] + api_type = os.environ.get("API_TYPE", "v1") for (path, path_regex, method, callback) in endpoints: if path.startswith("/api/v1/providers"): continue