Align API error envelopes
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-18 02:04:31 +02:00
parent 694913a280
commit 7adcdd76c7
8 changed files with 160 additions and 16 deletions
+8
View File
@@ -660,3 +660,11 @@ Added:
- Desktop screenshots are always captured; mobile screenshots are captured by default and can be disabled with `CAPTURE_MOBILE=0`.
- Added readiness syntax coverage and regression checks for the non-mutating screenshot capture contract.
- No API contracts, migrations, product capabilities, live provider fetching or AI/model dependency changes were introduced.
## Sprint 60 API error-envelope contract hardening (2026-06-18)
- Aligned backend error responses with the documented `ApiError` contract: top-level `error`, `message`, `details` and `request_id`.
- Preserved frontend compatibility with both the canonical top-level error payload and the older nested error-object shape.
- Added regression coverage for AppError, HTTPException and validation-error envelopes.
- Added static frontend parser coverage so API client error parsing does not drift silently.
- No migrations, product capabilities, live provider fetching or AI/model dependency changes were introduced.