FirelyTeam / firely-net-sdk

The official Firely .NET SDK for HL7 FHIR
Other
816 stars 340 forks source link

Base.CopyTo() does not work well with list properties #2790

Open ewoutkramer opened 1 month ago

ewoutkramer commented 1 month ago

The generated CopyTo() function does not handle lists well. Since the properties always return a list (an empty list if the element is not set), the current test that tests the list against null to see if it needs to be copied is wrong, and should use Any() instead.

mmsmits commented 1 month ago

You have to change the code generator for this.