docling-studio/document-parser/infra
Pier-Jean Malandrino 1b8cfe0a6b Fix Serve API contract: send to_formats as repeated form fields
Docling Serve expects array fields (to_formats) as repeated multipart
keys (to_formats=md&to_formats=html&to_formats=json), not a JSON
string. Changed _build_form_data to return list[tuple] so httpx sends
repeated keys correctly. Fixes 422 Unprocessable Entity on convert.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 16:52:36 +02:00
..
__init__.py Refactor backend to hexagonal architecture for converter extensibility 2026-03-31 10:34:07 +02:00
local_converter.py Refactor backend to hexagonal architecture for converter extensibility 2026-03-31 10:34:07 +02:00
serve_converter.py Fix Serve API contract: send to_formats as repeated form fields 2026-03-31 16:52:36 +02:00
settings.py Refactor backend to hexagonal architecture for converter extensibility 2026-03-31 10:34:07 +02:00