mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
The ROM list and /roms/filters responses already validate every filter_values key as a list, so the API never sends nulls. Make that contract explicit: the handler now returns RomFiltersDict directly (moved to handler/database/rom_filters.py to avoid an import cycle), which drops the mypy typeddict-item ignores in the endpoints. Endpoint tests pin that every key is present and a list, including for a ROM with no metadata and with with_filter_values=false. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>