fix: scope ZIP schema validation errors to integrated documents
Some checks failed
Mostovik Backend CI/CD / Tests and lint (push) Successful in 3m38s
Mostovik Backend CI/CD / Build linux/amd64 release images (push) Successful in 2m53s
Mostovik Backend CI/CD / Deploy and verify internal main (push) Has been skipped
Mostovik Backend CI/CD / Deploy dev (push) Failing after 2m21s

This commit is contained in:
Aleksandr Meshchryakov
2026-10-08 10:39:35 +02:00
parent 4e548fcc8e
commit 2eeb237a47

View File

@@ -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):