From e629e0864da9a8343cb1392fb4c54939386e355c Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Sun, 14 Jun 2026 02:29:17 -0700 Subject: fix: add defaults to FilingKpis and CadencePoint, make FormMixRow.pct optional --- backend/app/schemas.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/backend/app/schemas.py b/backend/app/schemas.py index aafe45d..86664e4 100644 --- a/backend/app/schemas.py +++ b/backend/app/schemas.py @@ -242,25 +242,25 @@ class FilingItem(BaseModel): class FilingKpis(BaseModel): - total: int - count_10k: int - count_10q: int - count_8k: int - distinct_forms: int + total: int = 0 + count_10k: int = 0 + count_10q: int = 0 + count_8k: int = 0 + distinct_forms: int = 0 class FormMixRow(BaseModel): form: str count: int - pct: float + pct: float | None = None class CadencePoint(BaseModel): - month: str # "YYYY-MM" - count_10k: int - count_10q: int - count_8k: int - count_other: int + month: str + count_10k: int = 0 + count_10q: int = 0 + count_8k: int = 0 + count_other: int = 0 class FilingsResponse(BaseModel): -- cgit v1.3-2-g0d8e