mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-28 20:23:36 +00:00
Allow alias in the provider models for provider specific params
This commit is contained in:
@@ -15,5 +15,8 @@ class Data(BaseModel):
|
||||
class QueryParams(BaseModel):
|
||||
"""The OpenBB Standardized QueryParams Model that holds the query input parameters."""
|
||||
|
||||
class Config:
|
||||
allow_population_by_field_name = True
|
||||
|
||||
def __repr__(self):
|
||||
return f"{self.__class__.__name__}({', '.join([f'{k}={v}' for k, v in self.dict().items()])})"
|
||||
|
||||
Reference in New Issue
Block a user