We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dc034d commit 97d7c52Copy full SHA for 97d7c52
gs/backend/data/tables/main_tables.py
@@ -42,8 +42,11 @@ class MainCommand(BaseSQLModel, table=True):
42
__tablename__ = MAIN_COMMAND_TABLE_NAME
43
44
@model_validator(mode="after")
45
- def validate_params_format(self):
46
-
+ def validate_params_format(self) -> "MainCommand":
+ """
47
+ Returns self if params and format are both None or have the same number of comma-separated values.
48
+ If one of params or format is missing, or the numbers of comma-separated values do not match, raise DatabaseError.
49
50
if self.format is None and self.params is None:
51
return self
52
0 commit comments