Skip to content

Commit 6bbbd03

Browse files
committed
fix: assert on single element of basepath list rather than whole list
1 parent 10eb1ad commit 6bbbd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samtranslator/model/api/api_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ def _construct_api_domain( # noqa: PLR0912, PLR0915
559559
mapping_basepath = basepath
560560
logical_id = self.logical_id + "BasePathMapping"
561561
else:
562-
sam_expect(basepaths, self.logical_id, "Domain.BasePath").to_be_a_list_of(ExpectedType.STRING)
562+
sam_expect(basepath, self.logical_id, "Domain.BasePath").to_be_a_list_of(ExpectedType.STRING)
563563
# Remove possible leading and trailing '/' because a base path may only
564564
# contain letters, numbers, and one of "$-_.+!*'()"
565565
path = "".join(e for e in basepath if e.isalnum())

0 commit comments

Comments
 (0)