Skip to content

Commit

Permalink
Add IReadOnlyCollection<ReportRequest> into ReportingApiJsonSerialize…
Browse files Browse the repository at this point in the history
…rContext (#26)
  • Loading branch information
trejjam authored Nov 16, 2023
1 parent ff62446 commit 4f810c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ReportingApi/ReportingApiJsonSerializerContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ReportingApi.Models;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace ReportingApi;
Expand All @@ -9,4 +10,5 @@ namespace ReportingApi;
[JsonSerializable(typeof(ReportRequest))]
[JsonSerializable(typeof(ReportRequest<CspReport>))]
[JsonSerializable(typeof(ReportRequest<NetworkErrorReport>))]
[JsonSerializable(typeof(IReadOnlyCollection<ReportRequest>))]
public sealed partial class ReportingApiJsonSerializerContext : JsonSerializerContext;

0 comments on commit 4f810c2

Please sign in to comment.