From a829d644f9754f4d8a736d92f8408b1a4ee7440b Mon Sep 17 00:00:00 2001 From: martincostello Date: Sat, 25 Nov 2023 15:41:34 +0000 Subject: [PATCH] Make Request non-abstract Make the type non-abstract to see if it fixes `NotSupportedException` when attempting to deserialize the payload. --- src/LondonTravel.Skill/Models/Request.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LondonTravel.Skill/Models/Request.cs b/src/LondonTravel.Skill/Models/Request.cs index c960388f9..c6aeb3ff5 100644 --- a/src/LondonTravel.Skill/Models/Request.cs +++ b/src/LondonTravel.Skill/Models/Request.cs @@ -12,10 +12,10 @@ namespace MartinCostello.LondonTravel.Skill.Models; [JsonDerivedType(typeof(SessionEndedRequest), "SessionEndedRequest")] [JsonDerivedType(typeof(SystemExceptionRequest), "System.ExceptionEncountered")] [JsonPolymorphic(TypeDiscriminatorPropertyName = "type")] -public abstract class Request +public class Request { [JsonIgnore] - public abstract string Type { get; } + public virtual string Type { get; } [JsonPropertyName("requestId")] public string RequestId { get; set; }