From 331a97d3c696c14c76f58168394827c355c8c00d Mon Sep 17 00:00:00 2001 From: flemming-it Date: Mon, 1 Jun 2026 22:13:25 +0200 Subject: [PATCH] feat: schema_version 3 with DE/EN field descriptions Signed-off-by: flemming-it --- module.yaml | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/module.yaml b/module.yaml index 826c95c..53bc8c9 100644 --- a/module.yaml +++ b/module.yaml @@ -1,4 +1,4 @@ -schema_version: 2 +schema_version: 3 provider: fai name: text-extract version: 0.1.0 @@ -10,19 +10,35 @@ provides: # Inputs the invoke function accepts. inputs: - # The document to extract text from. Supported MIME types: - # application/pdf - # application/x-pdf - # application/vnd.openxmlformats-officedocument.wordprocessingml.document - document: bytes + document: + type: bytes + description: + en: | + The document to extract text from. Supported MIME types: + application/pdf + application/x-pdf + application/vnd.openxmlformats-officedocument.wordprocessingml.document + de: | + Das Dokument, aus dem Text extrahiert werden soll. Unterstützte MIME-Typen: + application/pdf + application/x-pdf + application/vnd.openxmlformats-officedocument.wordprocessingml.document # Outputs produced. outputs: - # JSON-encoded ExtractedDocument: - # { engine, engine_version, pages: [{number, text, confidence?, bbox?}] } - # confidence and bbox are reserved for a future service-mode variant - # (pdfium / mupdf via host services). v0.1.0 omits them. - extracted: json + extracted: + type: json + description: + en: | + JSON-encoded ExtractedDocument: + { engine, engine_version, pages: [{number, text, confidence?, bbox?}] } + confidence and bbox are reserved for a future service-mode variant + (pdfium / mupdf via host services). v0.1.0 omits them. + de: | + JSON-codiertes ExtractedDocument: + { engine, engine_version, pages: [{number, text, confidence?, bbox?}] } + confidence und bbox sind für eine künftige Service-Mode-Variante reserviert + (pdfium / mupdf über Host-Services). v0.1.0 liefert sie nicht. # Permissions required. #