fix(tradein-api): PlacementHistoryEntry schema + None checks (PR #528 follow-up) #532

Merged
lekss361 merged 1 commit from fix/tradein-placement-history-schema into main 2026-05-24 14:33:54 +00:00

1 commit

Author SHA1 Message Date
lekss361
72334a7558 fix(tradein-api): add PlacementHistoryEntry schema + None checks
Follow-up to PR #528 review-bot Medium findings:
- /placement-history endpoint typed via new PlacementHistoryEntry schema
  (OpenAPI + Pydantic validation, consistent with other endpoints)
- Replace truthy 'if target.lat and target.lon' with 'is not None'
  (defensive against lat=0.0 in future region expansion)
2026-05-24 17:25:32 +03:00