From b835aff35cabcb98e9f70b255454d65c4f3bb68a Mon Sep 17 00:00:00 2001 From: Kyujin Cho Date: Wed, 10 Jan 2024 11:51:23 +0900 Subject: [PATCH] fix: make `metadata` field of model definition optional (#1825) --- src/ai/backend/common/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai/backend/common/config.py b/src/ai/backend/common/config.py index a840678b8a..d75d12860e 100644 --- a/src/ai/backend/common/config.py +++ b/src/ai/backend/common/config.py @@ -104,7 +104,7 @@ t.Key("expected_status_code", default=200): t.Null | t.ToInt[100:], }), }), - t.Key("metadata"): t.Null + t.Key("metadata", default=None): t.Null | t.Dict({ t.Key("author", default=None): t.Null | t.String(allow_blank=True), t.Key("title", default=None): t.Null | t.String(allow_blank=True),