From 3442b5340fd4217ff146875e10afa3f22a9fd518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20K=C3=BCrten?= Date: Mon, 10 Nov 2025 14:53:27 +0100 Subject: [PATCH] feat: Update Document schema to include reviewer and review date fields --- Makefile | 4 ++-- csfunctions/objects/document.py | 2 ++ json_schemas/request.json | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0e4cf2a..77cf721 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ doc: - poetry run python -m tools.mdtable + uv run python -m tools.mdtable schemas: - poetry run python -m csfunctions.tools.write_schema + uv run python -m csfunctions.tools.write_schema diff --git a/csfunctions/objects/document.py b/csfunctions/objects/document.py index f47f2e9..4f36342 100644 --- a/csfunctions/objects/document.py +++ b/csfunctions/objects/document.py @@ -68,6 +68,8 @@ class Document(BaseObject): z_art: str | None = Field(None, description="Document Type") mapped_materialnr_erp: str | None = Field(None, description="Materialnumber ERP") cdb_object_id: str | None = Field(None, description="Object ID") + pruefer: str | None = Field(None, description="Reviewer") + pruef_datum: datetime | None = Field(None, description="Review Date") # Custom Char Fields cca_char_doc_1: str | None = Field(None, description="Custom Char Field") diff --git a/json_schemas/request.json b/json_schemas/request.json index 16d9232..2040695 100644 --- a/json_schemas/request.json +++ b/json_schemas/request.json @@ -691,6 +691,33 @@ "description": "Object ID", "title": "Cdb Object Id" }, + "pruefer": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Reviewer", + "title": "Pruefer" + }, + "pruef_datum": { + "anyOf": [ + { + "format": "date-time", + "type": "string" + }, + { + "type": "null" + } + ], + "default": null, + "description": "Review Date", + "title": "Pruef Datum" + }, "cca_char_doc_1": { "anyOf": [ {