Skip to content
This repository was archived by the owner on Apr 6, 2024. It is now read-only.

Commit 2cb017f

Browse files
authored
Serialize URLs as string (#325)
1 parent b3809d2 commit 2cb017f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Cake.Issues.Reporting.Generic/IIssueExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static ExpandoObject GetExpandoObject(
128128

129129
if (addRuleUrl)
130130
{
131-
result.RuleUrl = issue.RuleUrl;
131+
result.RuleUrl = issue.RuleUrl?.ToString();
132132
}
133133

134134
if (addMessageText)
@@ -150,7 +150,7 @@ public static ExpandoObject GetExpandoObject(
150150

151151
if (fileLinkSettings != null)
152152
{
153-
result.FileLink = fileLinkSettings.GetFileLink(issue);
153+
result.FileLink = fileLinkSettings.GetFileLink(issue)?.ToString();
154154
}
155155

156156
if (additionalValues != null)

0 commit comments

Comments
 (0)