From 29c1776fabcc3f1b3dfa8fb419cbfd83c6418166 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 16 Dec 2022 20:27:54 +0000 Subject: [PATCH] Ensure that Resharper does not remove the partial modifier from JSON contexts. --- AaruMetadata/AaruMetadata.cs | 1 + Metadata/Resume.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/AaruMetadata/AaruMetadata.cs b/AaruMetadata/AaruMetadata.cs index c9cda83..78dd3b9 100644 --- a/AaruMetadata/AaruMetadata.cs +++ b/AaruMetadata/AaruMetadata.cs @@ -48,6 +48,7 @@ namespace Aaru.CommonTypes.AaruMetadata; [JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)] [JsonSerializable(typeof(MetadataJson))] +// ReSharper disable once PartialTypeWithSinglePart public partial class MetadataJsonContext : JsonSerializerContext {} public class MetadataJson diff --git a/Metadata/Resume.cs b/Metadata/Resume.cs index 657fe90..1eac454 100644 --- a/Metadata/Resume.cs +++ b/Metadata/Resume.cs @@ -47,6 +47,7 @@ namespace Aaru.CommonTypes.Metadata; [JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, IncludeFields = true)] [JsonSerializable(typeof(ResumeJson))] +// ReSharper disable once PartialTypeWithSinglePart public partial class ResumeJsonContext : JsonSerializerContext {} public class ResumeJson