fix: add list handling (#2758)

This commit is contained in:
dni ⚡ 2024-11-01 10:12:18 +01:00 committed by GitHub
parent 2fa0a3c995
commit acb1b1ed91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 31 additions and 8 deletions

View file

@ -22,6 +22,7 @@ class DbTestModel2(BaseModel):
label: str
description: Optional[str] = None
child: DbTestModel
child_list: list[DbTestModel]
class DbTestModel3(BaseModel):
@ -29,6 +30,8 @@ class DbTestModel3(BaseModel):
user: str
child: DbTestModel2
active: bool = False
children: list[DbTestModel]
children_ids: list[int] = []
def get_random_string(iterations: int = 10):