feat(ocr): эталоны нормализатора scan-gateway (Срез 3a) #13

Merged
aep merged 2 commits from feat/12-ocr-golden into main 2026-10-07 04:04:25 +03:00
5 changed files with 2472 additions and 0 deletions
Showing only changes of commit a800db63eb - Show all commits

View File

@ -0,0 +1,6 @@
# Эталоны нормализатора scan-gateway (Срез 3a)
`<name>.json` — результат `OcrNormalizer` для набора `ocr/<name>.json` + `ocr/<name>_*.json` в формате
`{status, warnings, metrics, error, documents}` (документы — `statementDocument` контракта v1.2, `exclude_none`).
Обновление: `make golden-update` в scan-gateway; изменения смотреть через `git diff` и объяснять в PR.
Эталоны фиксируют поведение на реальных сканах, включая известные ограничения (решение №12 спеки: `(7744536}` → без минуса).

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,12 @@
{
"documents": [],
"error": {
"code": "INVALID_DOCUMENT",
"message": "Не удалось определить тип документа."
},
"metrics": null,
"status": "error",
"warnings": [
"3f1c2b7a-0000-4000-8000-000000000001.json: INVALID_DOCUMENT: Не удалось определить тип документа."
]
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,12 @@
{
"documents": [],
"error": {
"code": "INVALID_DOCUMENT",
"message": "Не удалось определить тип документа."
},
"metrics": null,
"status": "error",
"warnings": [
"3f1c2b7a-0000-4000-8000-000000000001.json: INVALID_DOCUMENT: Не удалось определить тип документа."
]
}