Skip to content

Commit 42e0c50

Browse files
author
Andrii Bondarchuk
committed
Suppress SuppressNullMismatchDiagnostic in SummaryActivityMapper
1 parent 37af32b commit 42e0c50

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/FitSyncHub.Functions/Mappers/SummaryActivityMapper.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@ namespace FitSyncHub.Functions.Mappers;
77
[Mapper]
88
internal sealed partial class SummaryActivityMapper
99
{
10-
[MapProperty(nameof(SummaryActivityModelResponse.Id), nameof(SummaryActivityData.id))]
10+
[MapProperty(
11+
nameof(SummaryActivityModelResponse.Id),
12+
nameof(SummaryActivityData.Id),
13+
SuppressNullMismatchDiagnostic = true)]
1114
public partial SummaryActivityData SummaryActivityResponseToDataModel(SummaryActivityModelResponse activity);
1215

13-
[MapProperty(nameof(ActivityModelResponse.Id), nameof(SummaryActivityData.id))]
16+
[MapProperty(
17+
nameof(ActivityModelResponse.Id),
18+
nameof(SummaryActivityData.Id),
19+
SuppressNullMismatchDiagnostic = true)]
1420
[MapperIgnoreSource(nameof(ActivityModelResponse.AvailableZones))]
1521
[MapperIgnoreSource(nameof(ActivityModelResponse.AverageTemp))]
1622
[MapperIgnoreSource(nameof(ActivityModelResponse.Calories))]

0 commit comments

Comments
 (0)