Skip to content

Commit

Permalink
Merge pull request #2810 from hot-patch-is_str
Browse files Browse the repository at this point in the history
chore: Add back samtranslator.model.types.is_str for compatibility
  • Loading branch information
aahung authored Jan 24, 2023
2 parents 19f475e + bfc144e commit 3a2da9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samtranslator/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.58.0"
__version__ = "1.58.1"
12 changes: 12 additions & 0 deletions samtranslator/model/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,15 @@ def validate(value: Any, should_raise: bool = False) -> bool:
return True

return validate


def is_str() -> Validator:
"""
For compatibility reason, we need this `is_str()` as it
is consumed by old versions of AWS SAM CLI (<1.71.0).
Related PRs/commits:
https://github.com/aws/serverless-application-model/pull/2752
https://github.com/aws/aws-sam-cli/commit/d18f57c5f39273a04fb582f90e6c5817a4651912
"""
return IS_STR

0 comments on commit 3a2da9e

Please sign in to comment.