From a7cb237fb67d4255e20f345fc43851e91a4600e4 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 1 Dec 2025 13:01:58 +0100 Subject: [PATCH] Refactor CreateOutResCommand properties Removed unused System.Text.Json dependency and the `EmptyJson` field. Updated `ActionId` to be required during initialization. Changed `Header` and `Body` properties to nullable strings without default values. --- .../OutResults/Commands/CreateOutResCommand.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs b/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs index a235156..fe33046 100644 --- a/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs +++ b/src/ReC.Application/OutResults/Commands/CreateOutResCommand.cs @@ -6,16 +6,11 @@ namespace ReC.Application.OutResults.Commands; public class CreateOutResCommand : IRequest { - public static readonly string EmptyJson = JsonSerializer.Serialize(new object(), options: new() - { - WriteIndented = false - }); - - public long ActionId { get; set; } + public required long ActionId { get; set; } - public string Header { get; set; } = EmptyJson; + public string? Header { get; set; } - public string Body { get; set; } = EmptyJson; + public string? Body { get; set; } public string? AddedWho { get; set; } }