Skip to content

Commit

Permalink
Merge pull request #41 from niscy-eudiw/main
Browse files Browse the repository at this point in the history
Update RequestItem initialization to allow optional items
  • Loading branch information
phisakel authored Nov 19, 2024
2 parents 3714dd8 + 9914217 commit 900416b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/MdocDataTransfer18013/MdocHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public class MdocHelpers {
}
if itemsToAdd.count > 0 {
nsItemsToAdd[reqNamespace] = itemsToAdd
validReqItemsNsDict[reqNamespace] = itemsToAdd.map { RequestItem(elementIdentifier: $0.elementIdentifier, intentToRetain: docReq?.itemsRequest.requestNameSpaces.nameSpaces[reqNamespace]?.dataElements[$0.elementIdentifier] ?? false, isOptional: false) }
validReqItemsNsDict[reqNamespace] = itemsToAdd.map { RequestItem(elementIdentifier: $0.elementIdentifier, intentToRetain: docReq?.itemsRequest.requestNameSpaces.nameSpaces[reqNamespace]?.dataElements[$0.elementIdentifier], isOptional: nil) }
}
let errorItemsSet = itemsReqSet.subtracting(itemsSet)
if errorItemsSet.count > 0 {
Expand Down

0 comments on commit 900416b

Please sign in to comment.