Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/report_workflow/test_report_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import logging
import os
import re
import typing
import urllib.request
from typing import Any
Expand Down Expand Up @@ -184,7 +185,7 @@ def get_spec_path(self, version: str, spec_file: str) -> list:
paths = data.get('paths', {})
for api_requests, api_details in paths.items():
for method in api_details.keys():
api_path = '_'.join([method, api_requests.replace("/", "_")])
api_path = '_'.join([method, re.sub(r'[^a-zA-Z0-9]', '_', api_requests)])
logging.info(f"api_path is {api_path}")
api_paths.append(api_path)
break
Expand Down
Loading