Skip to content

Commit 8e50fad

Browse files
authored
Fixup a couple of warnings.
1 parent 3e1efcc commit 8e50fad

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

JsonFeedNet/JsonFeed.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ namespace JsonFeedNet;
55
using System.Text;
66
using System.Text.Json.Serialization;
77

8+
/// <summary>
9+
/// Represents a JSON Feed.
10+
/// </summary>
811
// ReSharper disable MemberCanBePrivate.Global
912
// ReSharper disable UnusedMember.Global
1013
public class JsonFeed

JsonFeedNet/JsonFeedItem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ public class JsonFeedItem
9595
[Obsolete("obsolete by specification version 1.1. Use `Authors`")]
9696
public JsonFeedAuthor Author { get; set; } //optional
9797

98+
/// <summary>
99+
/// Feed item authors.
100+
/// If not specified, then the top-level author, if present, is the author of the item.
101+
/// </summary>
98102
[JsonPropertyName("authors")]
99103
public List<JsonFeedAuthor> Authors { get; set; } //optional
100104

JsonFeedNet/JsonFeedNet.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<IncludeSymbols>true</IncludeSymbols>
2626
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2727
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
28+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2829
</PropertyGroup>
2930

3031
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net6.0' ">

JsonFeedNet/SourceGenerationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ namespace JsonFeedNet;
1212
[JsonSerializable(typeof(JsonFeedAuthor))]
1313
[JsonSerializable(typeof(JsonFeedHub))]
1414
[JsonSerializable(typeof(JsonFeedItem))]
15-
internal partial class SourceGenerationContext : JsonSerializerContext
15+
internal sealed partial class SourceGenerationContext : JsonSerializerContext
1616
{
1717
}

0 commit comments

Comments
 (0)