From a9803cf685e00ed91722c43eba6d39d39618c8db Mon Sep 17 00:00:00 2001 From: maverickstuder Date: Fri, 6 Dec 2024 11:30:28 +0100 Subject: [PATCH] RED-9998: App version history (for conditional re-analyzing the layout of a file) --- .../api/queue/LayoutParsingFinishedEvent.java | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/layoutparser-service/layoutparser-service-internal-api/src/main/java/com/knecon/fforesight/service/layoutparser/internal/api/queue/LayoutParsingFinishedEvent.java b/layoutparser-service/layoutparser-service-internal-api/src/main/java/com/knecon/fforesight/service/layoutparser/internal/api/queue/LayoutParsingFinishedEvent.java index 20253bf..e8cfdb7 100644 --- a/layoutparser-service/layoutparser-service-internal-api/src/main/java/com/knecon/fforesight/service/layoutparser/internal/api/queue/LayoutParsingFinishedEvent.java +++ b/layoutparser-service/layoutparser-service-internal-api/src/main/java/com/knecon/fforesight/service/layoutparser/internal/api/queue/LayoutParsingFinishedEvent.java @@ -8,13 +8,20 @@ import lombok.Builder; @Builder @Schema(description = "Object containing information about the layout parsing.") public record LayoutParsingFinishedEvent( - @Schema(description = "General purpose identifier. It is returned exactly the same way it is inserted with the LayoutParsingRequest.") - Map identifier,// - @Schema(description = "The duration of a single layout parsing in ms.") - long duration,// - @Schema(description = "The number of pages of the parsed document.") - int numberOfPages,// - @Schema(description = "A general message. It contains some information useful for a developer, like the paths where the files are stored. Not meant to be machine readable.") - String message) { + @Schema(description = "General purpose identifier. It is returned exactly the same way it is inserted with the LayoutParsingRequest.") // + Map identifier, + + @Schema(description = "The duration of a single layout parsing in ms.") // + long duration, + + @Schema(description = "The number of pages of the parsed document.") // + int numberOfPages, + + @Schema(description = "A general message. It contains some information useful for a developer, like the paths where the files are stored. Not meant to be machine readable.") // + String message, + + @Schema(description = "The app version of the layout parser.") // + String layoutParserVersion +) { }