Skip to content

Commit f7c07fc

Browse files
mivertowskiclaude
andcommitted
Fix BenchmarkDimension: make median/percentile nullable, add peersWithData
The API now returns null for industryMedian and percentile when no peers have industry data for a dimension, and includes a new peersWithData field indicating how many peers contributed to the statistic. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9dfce7e commit f7c07fc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/vynco/types/analytics.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ class BenchmarkDimension(VyncoModel):
127127
"""A single benchmarking dimension comparing a company to its industry peers."""
128128

129129
name: str = ""
130-
company_value: float = 0.0
131-
industry_median: float = 0.0
132-
percentile: float = 0.0
130+
company_value: float | None = None
131+
industry_median: float | None = None
132+
percentile: float | None = None
133+
peers_with_data: int | None = None
133134

134135

135136
class BenchmarkResponse(VyncoModel):

0 commit comments

Comments
 (0)