From 38f8664eccd7738855918fff0537335f7238a006 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Mon, 18 May 2026 23:59:37 -0700 Subject: feat: add projection_years to DcfResult schema and service output Add projection_years: int = 5 field to the DcfResult Pydantic schema and emit it from the data_service.get_valuation() function across all three dcf_out cases (unavailable, error, and successful). This enables frontend DCF sliders to know the default projection horizon. Co-Authored-By: Claude Sonnet 4.6 --- backend/app/schemas.py | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/app/schemas.py') diff --git a/backend/app/schemas.py b/backend/app/schemas.py index 2c64333..c84b4c6 100644 --- a/backend/app/schemas.py +++ b/backend/app/schemas.py @@ -143,6 +143,7 @@ class DcfResult(BaseModel): base_fcf: float | None = None wacc: float = 0.10 terminal_growth: float = 0.03 + projection_years: int = 5 class MultipleResult(BaseModel): -- cgit v1.3-2-g0d8e