Skip to content

Commit

Permalink
Make Request non-abstract
Browse files Browse the repository at this point in the history
Make the type non-abstract to see if it fixes `NotSupportedException` when attempting to deserialize the payload.
  • Loading branch information
martincostello committed Nov 26, 2023
1 parent b64054c commit a829d64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LondonTravel.Skill/Models/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit a829d64

Please sign in to comment.