File tree Expand file tree Collapse file tree 3 files changed +20
-20
lines changed
Expand file tree Collapse file tree 3 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class Document(BaseObject):
2424 object_type : Literal [ObjectType .DOCUMENT ] = ObjectType .DOCUMENT
2525
2626 z_nummer : str = Field (..., description = "document number" )
27- z_index : str = Field ("" , description = "index" )
27+ z_index : str = Field (... , description = "index" )
2828 titel : str | None = Field (..., description = "title" )
2929 category1_name_en : str | None = Field (..., description = "Main Category" )
3030 category1_name_de : str | None = Field (..., description = "Main Category" )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Part(BaseObject):
1919 object_type : Literal [ObjectType .PART ] = ObjectType .PART
2020
2121 teilenummer : str = Field (..., description = "part number" )
22- t_index : str = Field ("" , description = "part index" )
22+ t_index : str = Field (... , description = "part index" )
2323 status : int = Field (..., description = "Status Number" )
2424 materialnr_erp : str | None = Field (None , description = "Material No. (ERP)" )
2525 benennung : str | None = Field (None , description = "Name" )
Original file line number Diff line number Diff line change 106106 "type" : " string"
107107 },
108108 "z_index" : {
109- "default" : " " ,
110109 "description" : " index" ,
111110 "title" : " Z Index" ,
112111 "type" : " string"
721720 },
722721 "required" : [
723722 " z_nummer" ,
723+ " z_index" ,
724724 " titel" ,
725725 " category1_name_en" ,
726726 " category1_name_de" ,
754754 },
755755 "title" : " Attached Parts" ,
756756 "type" : " array"
757+ },
758+ "attached_documents" : {
759+ "description" : " Contains the original document(s) if a document is a copy" ,
760+ "items" : {
761+ "$ref" : " #/$defs/Document"
762+ },
763+ "title" : " Attached Documents" ,
764+ "type" : " array"
757765 }
758766 },
759767 "required" : [
760768 " documents" ,
761- " attached_parts"
769+ " attached_parts" ,
770+ " attached_documents"
762771 ],
763772 "title" : " DocumentCreateCheckData" ,
764773 "type" : " object"
18041813 "type" : " string"
18051814 },
18061815 "t_index" : {
1807- "default" : " " ,
18081816 "description" : " part index" ,
18091817 "title" : " T Index" ,
18101818 "type" : " string"
25632571 },
25642572 "required" : [
25652573 " teilenummer" ,
2574+ " t_index" ,
25662575 " status"
25672576 ],
25682577 "title" : " Part" ,
25782587 "title" : " Parts" ,
25792588 "type" : " array"
25802589 },
2581- "attached_documents " : {
2582- "description" : " List of documents that are referenced by the parts. " ,
2590+ "attached_parts " : {
2591+ "description" : " Contains the original part(s) if a part is a copy " ,
25832592 "items" : {
2584- "$ref" : " #/$defs/Document "
2593+ "$ref" : " #/$defs/Part "
25852594 },
2586- "title" : " Attached Documents " ,
2595+ "title" : " Attached Parts " ,
25872596 "type" : " array"
25882597 }
25892598 },
25902599 "required" : [
25912600 " parts" ,
2592- " attached_documents "
2601+ " attached_parts "
25932602 ],
25942603 "title" : " PartCreateCheckData" ,
25952604 "type" : " object"
26302639 },
26312640 "title" : " Parts" ,
26322641 "type" : " array"
2633- },
2634- "attached_documents" : {
2635- "description" : " List of documents that are referenced by the parts." ,
2636- "items" : {
2637- "$ref" : " #/$defs/Document"
2638- },
2639- "title" : " Attached Documents" ,
2640- "type" : " array"
26412642 }
26422643 },
26432644 "required" : [
2644- " parts" ,
2645- " attached_documents"
2645+ " parts"
26462646 ],
26472647 "title" : " PartModifyCheckData" ,
26482648 "type" : " object"
You can’t perform that action at this time.
0 commit comments