fix(ocr): handle unknown NDJSON fields with @JsonIgnoreProperties

Added @JsonIgnoreProperties(ignoreUnknown = true) to OcrBlockResult so
new fields from the Python OCR service don't crash the Java parser,
while keeping FAIL_ON_UNKNOWN_PROPERTIES strict globally.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-13 12:27:20 +02:00
parent caae2ead81
commit 9282e46a02
2 changed files with 20 additions and 0 deletions

View File

@@ -1,7 +1,10 @@
package org.raddatz.familienarchiv.service;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public record OcrBlockResult(
int pageNumber,
double x,