From 7f493049b0715d8c5d6d6f7286fb09b6f9d764f8 Mon Sep 17 00:00:00 2001 From: Wouter Date: Wed, 6 Mar 2024 13:53:01 +0100 Subject: [PATCH] strip / from OAS server URL --- src/coordinate_transformation_api/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coordinate_transformation_api/util.py b/src/coordinate_transformation_api/util.py index d2813e5..2253b85 100644 --- a/src/coordinate_transformation_api/util.py +++ b/src/coordinate_transformation_api/util.py @@ -254,7 +254,7 @@ def init_oas(crs_config) -> tuple[dict, str, str]: with oas_filepath.open("rb") as oas_file: oas = yaml.load(oas_file, yaml.SafeLoader) - servers = [{"url": app_settings.base_url}] + servers = [{"url": app_settings.base_url.strip("/")}] oas["servers"] = servers oas["info"]["version"] = version("coordinate_transformation_api") oas["components"]["schemas"]["CrsEnum"]["enum"] = available_crss