🐛 fix config load due to pydantic breaking change

This commit is contained in:
yanyongyu 2021-03-16 16:17:34 +08:00
parent 9258bb09b4
commit 1e294b8fbe
3 changed files with 3 additions and 0 deletions

View File

@ -19,3 +19,4 @@ class Config(BaseModel):
class Config: class Config:
extra = "ignore" extra = "ignore"
allow_population_by_field_name = True

View File

@ -17,3 +17,4 @@ class Config(BaseModel):
class Config: class Config:
extra = "ignore" extra = "ignore"
allow_population_by_field_name = True

View File

@ -20,3 +20,4 @@ class Config(BaseModel):
class Config: class Config:
extra = Extra.ignore extra = Extra.ignore
allow_population_by_field_name = True