From 2eeb237a47387ca1e84596e5520e191c05d7609a Mon Sep 17 00:00:00 2001 From: Aleksandr Meshchryakov Date: Thu, 8 Oct 2026 10:39:35 +0200 Subject: [PATCH] fix: scope ZIP schema validation errors to integrated documents --- src/apps/parsers/api_result_urls.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apps/parsers/api_result_urls.py b/src/apps/parsers/api_result_urls.py index 66b7d2d..e4b4980 100644 --- a/src/apps/parsers/api_result_urls.py +++ b/src/apps/parsers/api_result_urls.py @@ -153,7 +153,11 @@ def _upload_view(descriptor: ParserSourceDescriptor): 409: "Загрузка уже выполняется", 413: "Файл превышает лимит", 415: "Неподдерживаемый тип файла", - 422: "Некорректный архив, листы, идентификаторы или вложения", + 422: ( + "Некорректный архив, листы, идентификаторы или вложения" + if descriptor.key == "integrated_structure_documents" + else "Неверные листы, идентификаторы или вложения" + ), }, ) def post(self, request):