Skip to content

Commit

Permalink
strip / from OAS server URL
Browse files Browse the repository at this point in the history
  • Loading branch information
WouterVisscher committed Mar 6, 2024
1 parent ed7387c commit 7f49304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coordinate_transformation_api/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f49304

Please sign in to comment.