Skip to content

Commit

Permalink
Fixup a couple of warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRigby authored Sep 23, 2024
1 parent 3e1efcc commit 8e50fad
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions JsonFeedNet/JsonFeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ namespace JsonFeedNet;
using System.Text;
using System.Text.Json.Serialization;

/// <summary>
/// Represents a JSON Feed.
/// </summary>
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedMember.Global
public class JsonFeed
Expand Down
4 changes: 4 additions & 0 deletions JsonFeedNet/JsonFeedItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public class JsonFeedItem
[Obsolete("obsolete by specification version 1.1. Use `Authors`")]
public JsonFeedAuthor Author { get; set; } //optional

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

Expand Down
1 change: 1 addition & 0 deletions JsonFeedNet/JsonFeedNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net6.0' ">
Expand Down
2 changes: 1 addition & 1 deletion JsonFeedNet/SourceGenerationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ namespace JsonFeedNet;
[JsonSerializable(typeof(JsonFeedAuthor))]
[JsonSerializable(typeof(JsonFeedHub))]
[JsonSerializable(typeof(JsonFeedItem))]
internal partial class SourceGenerationContext : JsonSerializerContext
internal sealed partial class SourceGenerationContext : JsonSerializerContext
{

Check notice on line 16 in JsonFeedNet/SourceGenerationContext.cs

View workflow job for this annotation

GitHub Actions / build

Redundant empty class declaration body in JsonFeedNet\SourceGenerationContext.cs on line 16

Check notice on line 16 in JsonFeedNet/SourceGenerationContext.cs

View workflow job for this annotation

GitHub Actions / build

Redundant empty class declaration body in JsonFeedNet\SourceGenerationContext.cs on line 16

Check notice on line 16 in JsonFeedNet/SourceGenerationContext.cs

View workflow job for this annotation

GitHub Actions / build

Redundant empty class declaration body in JsonFeedNet\SourceGenerationContext.cs on line 16
}

0 comments on commit 8e50fad

Please sign in to comment.