Skip to content

Commit 26d6e19

Browse files
allows extra fields on model instantiation to bridge for views
1 parent a5af7f1 commit 26d6e19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/models/interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
class ApiBaseModel(BaseModel, ABC):
88
_id: Optional[ObjectId] = PrivateAttr(default=None)
99
model_config = ConfigDict(
10+
extra="allow",
1011
json_encoders={ObjectId: str},
1112
use_enum_values=True,
1213
validate_default=True,

0 commit comments

Comments
 (0)