fix(api): declare sample_maturity.target_count in the response schema #259
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#259
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P3 follow-up from PR #243 review pass 2 (both axes).
Finding
PR #243 added
sample_maturity.target_count, butSampleMaturityInfo(app/schemas/models.py:526-538) doesn't declare it. The field only reaches the client because ofextra="allow", somodel_json_schema()and OpenAPI //api-docsnever show it (AGENTS.md §2: contracts live inapp/schemas/).is_uncalibratedhas the same gap, which predates #243.app.js:3801mat.target_count ?? 14keeps a hard-coded 14. The same app serves both the script and the API, so a response without the field can't arrive.Acceptance Criteria
target_count: int(orint | None) andis_uncalibratedonSampleMaturityInfo, and assert that they appear in the OpenAPI schema.?? 14fallback, or point it at one named constant.