Skip to content

Commit 9be41af

Browse files
committed
change wanring trigger
1 parent 91bc2a6 commit 9be41af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapseclient/extensions/curator/schema_generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4745,7 +4745,7 @@ def __post_init__(self) -> None:
47454745

47464746
self.pattern = column_pattern if column_pattern else rule_pattern
47474747

4748-
if rule_pattern:
4748+
if rule_pattern and not column_pattern:
47494749
msg = (
47504750
f"A regex validation rule is set for property: {self.name}, but the pattern is not set in the data model. "
47514751
f"The regex pattern will be set to {self.pattern}, but the regex rule is deprecated and validation "

0 commit comments

Comments
 (0)