Skip to content

Commit

Permalink
Merge pull request #577 from velvolue/patch-1
Browse files Browse the repository at this point in the history
Return null when object subtype is not found
  • Loading branch information
christianhelle authored Jan 9, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents b16636a + cd79f41 commit bb1bf87
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -222,7 +222,7 @@ public class JsonInheritanceConverter : Newtonsoft.Json.JsonConverter
return attribute.Type;
}

return objectType;
return null;
}

private string GetSubtypeDiscriminator(System.Type objectType)

0 comments on commit bb1bf87

Please sign in to comment.