Skip to content

Commit 0585219

Browse files
authored
Update update_specification_files.py
Download preview as 'Preview' but save file as 'preview'
1 parent 42a6b6d commit 0585219

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update_specification_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def remove_out_of_support_specifications(specification_folder, reference_version
5757

5858
def download_specification(version, api_service, specification_folder, gateway_service):
5959
folder_path = Path(specification_folder)
60-
target_file = folder_path / f"{api_service.lower()}_{version}{SPECIFICATION_EXTENSION}"
61-
specification_url = f"{gateway_service}/{version.lower()}/{api_service.lower()}/open-api-specifications.json"
60+
target_file = folder_path / f"{api_service.lower()}_{version.lower()}{SPECIFICATION_EXTENSION}"
61+
specification_url = f"{gateway_service}/{version}/{api_service.lower()}/open-api-specifications.json"
6262
try:
6363
f = urllib.request.urlopen(specification_url)
6464
if target_file.exists():

0 commit comments

Comments
 (0)