Gracefully handle null EventData during event publishing
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user