Skip to content

Commit 3442b53

Browse files
author
Jens Kürten
committed
feat: Update Document schema to include reviewer and review date fields
1 parent 213f4ab commit 3442b53

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
doc:
2-
poetry run python -m tools.mdtable
2+
uv run python -m tools.mdtable
33

44
schemas:
5-
poetry run python -m csfunctions.tools.write_schema
5+
uv run python -m csfunctions.tools.write_schema

csfunctions/objects/document.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ class Document(BaseObject):
6868
z_art: str | None = Field(None, description="Document Type")
6969
mapped_materialnr_erp: str | None = Field(None, description="Materialnumber ERP")
7070
cdb_object_id: str | None = Field(None, description="Object ID")
71+
pruefer: str | None = Field(None, description="Reviewer")
72+
pruef_datum: datetime | None = Field(None, description="Review Date")
7173

7274
# Custom Char Fields
7375
cca_char_doc_1: str | None = Field(None, description="Custom Char Field")

json_schemas/request.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,33 @@
691691
"description": "Object ID",
692692
"title": "Cdb Object Id"
693693
},
694+
"pruefer": {
695+
"anyOf": [
696+
{
697+
"type": "string"
698+
},
699+
{
700+
"type": "null"
701+
}
702+
],
703+
"default": null,
704+
"description": "Reviewer",
705+
"title": "Pruefer"
706+
},
707+
"pruef_datum": {
708+
"anyOf": [
709+
{
710+
"format": "date-time",
711+
"type": "string"
712+
},
713+
{
714+
"type": "null"
715+
}
716+
],
717+
"default": null,
718+
"description": "Review Date",
719+
"title": "Pruef Datum"
720+
},
694721
"cca_char_doc_1": {
695722
"anyOf": [
696723
{

0 commit comments

Comments
 (0)