Andrey Antukh feda8ac9f2 ♻️ Add defensive defaults and unit tests for content negotiation
Both case expressions dispatching on the negotiated format now
fall back to the transit encoding/format when an unexpected value
shows up, instead of silently returning nil.

Add direct unit tests for app.http.content-negotiation/negotiate-format
covering the Accept header, the _fmt=json query parameter precedence,
and the transit fallback when no explicit signal is present.

AI-assisted-by: glm-5.3-flash
2026-08-28 07:44:50 +00:00
..