Allow alias in the provider models for provider specific params

This commit is contained in:
Pratyush Shukla
2023-07-27 19:40:39 +05:30
parent 88b7ce2738
commit b4b32a4fb8

View File

@@ -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()])})"