Skip to content

Commit 7d398ac

Browse files
committed
Update pydantic test
1 parent 5ae76a5 commit 7d398ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_code_generation/test_pydantic_generation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ class Test(BaseModel):
9999
"body": "None"
100100
},
101101
"dict": {
102-
"name": "dict",
102+
"name": "dict_",
103103
"type": "Dict[str, int]",
104+
"body": 'Field(..., alias="dict")'
104105
},
105106
"not": {
106107
"name": "not_",
@@ -126,7 +127,7 @@ class Test(BaseModel):
126127
class Test(BaseModel):
127128
foo: int
128129
qwerty: float
129-
dict: Dict[str, int]
130+
dict_: Dict[str, int] = Field(..., alias="dict")
130131
not_: bool = Field(..., alias="not")
131132
one_day: int = Field(..., alias="1day")
132133
den_nedeli: str = Field(..., alias="день_недели")

0 commit comments

Comments
 (0)