From f782bbb290e93077c1d41a528f86ee47985697c1 Mon Sep 17 00:00:00 2001 From: Dan Roberts Date: Sun, 15 May 2022 20:37:40 +0100 Subject: [PATCH] Full JsonException type name in DateFormatConverter (#1505) --- .../Templates/DateFormatConverter.liquid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NJsonSchema.CodeGeneration.CSharp/Templates/DateFormatConverter.liquid b/src/NJsonSchema.CodeGeneration.CSharp/Templates/DateFormatConverter.liquid index 7d8dc0630..dc87d9341 100644 --- a/src/NJsonSchema.CodeGeneration.CSharp/Templates/DateFormatConverter.liquid +++ b/src/NJsonSchema.CodeGeneration.CSharp/Templates/DateFormatConverter.liquid @@ -7,7 +7,7 @@ internal class DateFormatConverter : System.Text.Json.Serialization.JsonConverte var dateTime = reader.GetString(); if (dateTime == null) { - throw new JsonException("Unexpected JsonTokenType.Null"); + throw new System.Text.Json.JsonException("Unexpected JsonTokenType.Null"); } return System.DateTime.Parse(dateTime);