We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f475e commit 6ca498cCopy full SHA for 6ca498c
samtranslator/model/types.py
@@ -135,3 +135,15 @@ def validate(value: Any, should_raise: bool = False) -> bool:
135
return True
136
137
return validate
138
+
139
140
+def is_str() -> Validator:
141
+ """
142
+ For compatibility reason, we need this `is_str()` as it
143
+ is consumed by old versions of AWS SAM CLI (<1.71.0).
144
145
+ Related PRs/commits:
146
+ https://github.com/aws/serverless-application-model/pull/2752
147
+ https://github.com/aws/aws-sam-cli/commit/d18f57c5f39273a04fb582f90e6c5817a4651912
148
149
+ return IS_STR
0 commit comments