Skip to content

Commit 581797b

Browse files
committed
change wanring trigger
1 parent c389b3e commit 581797b

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
@@ -4855,7 +4855,7 @@ def __post_init__(self) -> None:
48554855

48564856
self.pattern = column_pattern if column_pattern else rule_pattern
48574857

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

0 commit comments

Comments
 (0)