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 fbfc791 commit 9be6388Copy full SHA for 9be6388
src/mavedb/view_models/keyword.py
@@ -31,10 +31,10 @@ def validate_key(cls, v: str) -> str:
31
32
@model_validator(mode="after")
33
def validate_code(self):
34
- keywords.validate_code(self.key, self.label, self.code)
+ if self.label is not None: # The client may submit empty keywords, which are removed before saving.
35
+ keywords.validate_code(self.key, self.label, self.code)
36
return self
37
-
38
# TODO#273: Un-commenting this block will require new experiments to contain a keyword on creation.
39
# @field_validator("label")
40
# def validate_value(cls, v):
0 commit comments