summaryrefslogtreecommitdiffstats
path: root/openbb_platform/core/openbb_core/provider/standard_models/income_statement.py
diff options
context:
space:
mode:
Diffstat (limited to 'openbb_platform/core/openbb_core/provider/standard_models/income_statement.py')
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/income_statement.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/openbb_platform/core/openbb_core/provider/standard_models/income_statement.py b/openbb_platform/core/openbb_core/provider/standard_models/income_statement.py
index 1d9022184b0..2f2a2f98962 100644
--- a/openbb_platform/core/openbb_core/provider/standard_models/income_statement.py
+++ b/openbb_platform/core/openbb_core/provider/standard_models/income_statement.py
@@ -26,10 +26,16 @@ class IncomeStatementQueryParams(QueryParams):
@field_validator("symbol", mode="before", check_fields=False)
@classmethod
- def upper_symbol(cls, v: str):
- """Convert symbol to uppercase."""
+ def to_upper(cls, v: str):
+ """Convert field to uppercase."""
return v.upper()
+ @field_validator("period", mode="before", check_fields=False)
+ @classmethod
+ def to_lower(cls, v: Optional[str]) -> Optional[str]:
+ """Convert field to lowercase."""
+ return v.lower() if v else v
+
class IncomeStatementData(Data):
"""Income Statement Data."""