Merge branch 'feature/snake_case' of https://github.com/OpenBB-finance/OpenBBTerminal into feature/snake_case

This commit is contained in:
tehcoderer
2023-08-21 11:37:50 -04:00
3 changed files with 5 additions and 14 deletions

View File

@@ -1,6 +1,7 @@
### THIS FILE IS AUTO-GENERATED. DO NOT EDIT. ###
from openbb_core.app.static.container import Container

View File

@@ -380,14 +380,9 @@ class CLASS_economy(Container):
CPI
---
date : Optional[date]
The date of the data.
realtime_start : Optional[date]
Date the data was updated.
realtime_end : Optional[date]
Date the data was updated.
value : Optional[float]
Value of the data."""
country_unit_freq : Optional[List[CPIData]]
CPI data for a country, units, and frequency combination. (provider: fred)
"""
inputs = filter_inputs(
provider_choices={

View File

@@ -11,12 +11,7 @@ class QueryParams(BaseModel):
"""Pydantic Config."""
allow_population_by_field_name = True
def __init__(self, **data):
"""Update the fields to snake case."""
for field in self.__fields__.values():
field.name = to_snake_case(field.name)
super().__init__(**data)
alias_generator = to_snake_case
def __repr__(self):
"""Return the string representation of the QueryParams object."""