Skip to content
Snippets Groups Projects
Verified Commit fcfc3dfe authored by Janis Streib's avatar Janis Streib :owl:
Browse files

FIX: correctly generate ta-schema-url

parent e14ed2e0
No related branches found
No related tags found
No related merge requests found
......@@ -676,7 +676,7 @@ def openapi(default_endpoint):
'content': {
'application/json': {
'schema': {'$ref': (
f'https://netvs{"-devel" if "devel" in loader.api_host else ""}.scc.kit.edu/netdb_{loader.api_version}_ta.yml') if
f'https://netvs{"-devel" if "devel" in loader.api_host else ""}.scc.kit.edu/netdb_{loader.api_version.replace(".", "_")}_ta.yml') if
loader.version_detail['major'] >= 4 else '#/components/schemas/wapi.transaction_stmt'}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment