We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 284e12c commit c1fe77cCopy full SHA for c1fe77c
samtranslator/model/api/api_generator.py
@@ -982,7 +982,7 @@ def _add_cors(self) -> None:
982
editor = SwaggerEditor(self.definition_body)
983
# Track normalized paths to avoid duplicate OPTIONS methods for paths that differ only by trailing slash
984
# API Gateway treats /path and /path/ as the same resource, so we normalize before adding CORS
985
- normalized_paths_processed: Set[str] = set()
+ normalized_paths_processed: set[str] = set()
986
987
for path in editor.iter_on_path():
988
# Normalize path by removing trailing slash (except for root path "/")
0 commit comments