Skip to content

Commit

Permalink
Serialization fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gavbrennan committed Apr 12, 2024
1 parent 2567681 commit 5db3a46
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public Dictionary<string, List<DateTime>> PastFixingDates(DateTime valDate) => v
Direction = Direction,
PeriodDates = PeriodDates,
DecisionDate = DecisionDate,
FixingDates = FixingDates?.Select(x => (DateTime[])x.Clone())?.ToList(),
FixingDates = FixingDates?.Select(x => new DateArray((DateTime[])x.Clone()))?.ToList(),
FixingCalendar = FixingCalendar?.Name,
PaymentCalendar = PaymentCalendar?.Name,
SpotLag = SpotLag.ToString(),
Expand Down
2 changes: 1 addition & 1 deletion src/Qwack.Core/Instruments/InstrumentFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static IInstrument GetInstrument(this TO_Instrument transportObject, ICur
Direction = transportObject.Direction,
DiscountCurve = transportObject.DiscountCurve,
FixingCalendar = calendarProvider.GetCalendarSafe(transportObject.FixingCalendar),
FixingDates = transportObject.FixingDates,
FixingDates = transportObject.FixingDates.Select(x=>x.Dates).ToList(),
FxConversionType = transportObject.FxConversionType,
FxFixingDates = transportObject.FxFixingDates,
FxFixingId = transportObject.FxFixingId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class TO_MultiPeriodBackpricingOption
[ProtoMember(10)]
public DateTime SettlementDate { get; set; }
[ProtoMember(11)]
public List<DateTime[]> FixingDates { get; set; }
public List<DateArray> FixingDates { get; set; }
[ProtoMember(12)]
public string FixingCalendar { get; set; }
[ProtoMember(13)]
Expand Down
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>0.7.71</VersionPrefix>
<VersionPrefix>0.7.72</VersionPrefix>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.71
0.7.72

0 comments on commit 5db3a46

Please sign in to comment.