Skip to content

Commit ebeb335

Browse files
author
Jens Kürten
committed
rename fields to attached_<object>
1 parent 8eea5a0 commit ebeb335

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

csfunctions/events/document_release_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class DocumentReleaseCheckData(BaseModel):
1212
documents: list[Document] = Field(..., description="List of documents that will be released.")
13-
parts: list[Part] = Field(..., description="List of parts that belong to the documents")
13+
attached_parts: list[Part] = Field(..., description="List of parts that belong to the documents")
1414
dialog_data: DocumentReleaseDialogData
1515

1616

csfunctions/events/engineering_change_release_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99

1010
class EngineeringChangeReleaseCheckData(BaseModel):
11-
documents: list[Document] = Field(..., description="List of included documents.")
12-
parts: list[Part] = Field(..., description="List of included parts.")
11+
attached_documents: list[Document] = Field(..., description="List of included documents.")
12+
attached_parts: list[Part] = Field(..., description="List of included parts.")
1313
engineering_changes: list[EngineeringChange] = Field(
1414
..., description="List of engineering changes that will be released."
1515
)

csfunctions/events/part_release_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class PartReleaseCheckData(BaseModel):
1212
parts: list[Part] = Field(..., description="List of parts that will be released.")
13-
documents: list[Document] = Field(..., description="List of documents that are referenced by the parts.")
13+
attached_documents: list[Document] = Field(..., description="List of documents that are referenced by the parts.")
1414
dialog_data: PartReleaseDialogData
1515

1616

json_schemas/request.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -747,12 +747,12 @@
747747
"title": "Documents",
748748
"type": "array"
749749
},
750-
"parts": {
750+
"attached_parts": {
751751
"description": "List of parts that belong to the documents",
752752
"items": {
753753
"$ref": "#/$defs/Part"
754754
},
755-
"title": "Parts",
755+
"title": "Attached Parts",
756756
"type": "array"
757757
},
758758
"dialog_data": {
@@ -761,7 +761,7 @@
761761
},
762762
"required": [
763763
"documents",
764-
"parts",
764+
"attached_parts",
765765
"dialog_data"
766766
],
767767
"title": "DocumentReleaseCheckData",
@@ -1315,20 +1315,20 @@
13151315
},
13161316
"EngineeringChangeReleaseCheckData": {
13171317
"properties": {
1318-
"documents": {
1318+
"attached_documents": {
13191319
"description": "List of included documents.",
13201320
"items": {
13211321
"$ref": "#/$defs/Document"
13221322
},
1323-
"title": "Documents",
1323+
"title": "Attached Documents",
13241324
"type": "array"
13251325
},
1326-
"parts": {
1326+
"attached_parts": {
13271327
"description": "List of included parts.",
13281328
"items": {
13291329
"$ref": "#/$defs/Part"
13301330
},
1331-
"title": "Parts",
1331+
"title": "Attached Parts",
13321332
"type": "array"
13331333
},
13341334
"engineering_changes": {
@@ -1341,8 +1341,8 @@
13411341
}
13421342
},
13431343
"required": [
1344-
"documents",
1345-
"parts",
1344+
"attached_documents",
1345+
"attached_parts",
13461346
"engineering_changes"
13471347
],
13481348
"title": "EngineeringChangeReleaseCheckData",
@@ -2472,12 +2472,12 @@
24722472
"title": "Parts",
24732473
"type": "array"
24742474
},
2475-
"documents": {
2475+
"attached_documents": {
24762476
"description": "List of documents that are referenced by the parts.",
24772477
"items": {
24782478
"$ref": "#/$defs/Document"
24792479
},
2480-
"title": "Documents",
2480+
"title": "Attached Documents",
24812481
"type": "array"
24822482
},
24832483
"dialog_data": {
@@ -2486,7 +2486,7 @@
24862486
},
24872487
"required": [
24882488
"parts",
2489-
"documents",
2489+
"attached_documents",
24902490
"dialog_data"
24912491
],
24922492
"title": "PartReleaseCheckData",

0 commit comments

Comments
 (0)