Gracefully handle null EventData during event publishing

This commit is contained in:
Behzad Alizadeh
2025-12-10 11:07:12 +03:30
parent 175b7b9288
commit 9b5412f33e
3 changed files with 32 additions and 17 deletions
@@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using JetBrains.Annotations;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JetBrains.Annotations;
using System.Text.Json;
namespace Caspian.WorkflowFramework.Models
{
@@ -18,6 +14,6 @@ namespace Caspian.WorkflowFramework.Models
public string EventName { get; set; }
[Required]
public string? EventData { get; set; }
public JsonElement EventData { get; set; }
}
}