Commit d965696
authored
fix(dataset_info): handle None attrs in DatasetInfo validator (#1680)
attrs is nullable in some DB configurations (e.g. Django JSONField
with null=True). Add a field_validator to coerce None to [] before
Pydantic validates the list type, consistent with existing validators
for params and metrics.1 parent ff20f30 commit d965696
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
0 commit comments