populate by name

This commit is contained in:
Robert 2024-02-25 17:02:56 +07:00
parent c778cb3ade
commit 7767af73a7
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -4,6 +4,7 @@ from pydantic.alias_generators import to_camel
class BaseConfig:
populate_by_name = True
alias_generator = to_camel
json_encoders = {UUID: str}
arbitrary_types_allowed = True