Skip to content

Commit d5410b0

Browse files
committed
comment out validation rules for functions
1 parent f762c86 commit d5410b0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

samtranslator/model/sam_resources.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ class SamFunction(SamResourceMacro):
254254
}
255255

256256
# Validation rules
257-
__validation_rules__ = [
258-
# TODO: To enable these rules, we need to update translator test input/output files to property configure template
259-
# to avoid fail-fast. eg: test with DeploymentPreference without AutoPublishAlias would fail fast before reaching testing state
260-
# (ValidationRule.MUTUALLY_EXCLUSIVE, ["ImageUri", "InlineCode", "CodeUri"]),
261-
# (ValidationRule.CONDITIONAL_REQUIREMENT, ["DeploymentPreference", "AutoPublishAlias"]),
262-
# (ValidationRule.CONDITIONAL_REQUIREMENT, ["ProvisionedConcurrencyConfig", "AutoPublishAlias"]),
263-
]
257+
# TODO: To enable these rules, we need to update translator test input/output files to property configure template
258+
# to avoid fail-fast. eg: test with DeploymentPreference without AutoPublishAlias would fail fast before reaching testing state
259+
# __validation_rules__ = [
260+
# (ValidationRule.MUTUALLY_EXCLUSIVE, ["ImageUri", "InlineCode", "CodeUri"]),
261+
# (ValidationRule.CONDITIONAL_REQUIREMENT, ["DeploymentPreference", "AutoPublishAlias"]),
262+
# (ValidationRule.CONDITIONAL_REQUIREMENT, ["ProvisionedConcurrencyConfig", "AutoPublishAlias"]),
263+
# ]
264264

265265
def resources_to_link(self, resources: Dict[str, Any]) -> Dict[str, Any]:
266266
try:

0 commit comments

Comments
 (0)