mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
revert data alias generator
This commit is contained in:
@@ -20,4 +20,8 @@ class Data(BaseModel):
|
||||
|
||||
extra = Extra.allow
|
||||
allow_population_by_field_name = True
|
||||
alias_generator = to_snake_case
|
||||
|
||||
def __init__(self, **data):
|
||||
"""Initialize the model."""
|
||||
data = {to_snake_case(k): v for k, v in data.items()}
|
||||
super().__init__(**data)
|
||||
|
||||
Reference in New Issue
Block a user