diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-06-14 02:29:17 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-06-14 02:29:17 -0700 |
| commit | e629e0864da9a8343cb1392fb4c54939386e355c (patch) | |
| tree | 710766c402195d0823766f05fe7df3ad8e5c5694 /backend/app/schemas.py | |
| parent | 67b7ea74b7c8f45483f7e93a207bc7521ba93a24 (diff) | |
fix: add defaults to FilingKpis and CadencePoint, make FormMixRow.pct optional
Diffstat (limited to 'backend/app/schemas.py')
| -rw-r--r-- | backend/app/schemas.py | 22 |
1 files 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): |
