diff --git a/src/libs/Descript/Generated/Descript.JsonConverters.OneOf3.g.cs b/src/libs/Descript/Generated/Descript.JsonConverters.OneOf3.g.cs index b632269..f532a27 100644 --- a/src/libs/Descript/Generated/Descript.JsonConverters.OneOf3.g.cs +++ b/src/libs/Descript/Generated/Descript.JsonConverters.OneOf3.g.cs @@ -85,6 +85,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 1) @@ -102,6 +106,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 2) @@ -119,6 +127,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -137,6 +149,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null) @@ -154,6 +170,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null) @@ -171,6 +191,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } var __value = new global::Descript.OneOf( diff --git a/src/libs/Descript/Generated/Descript.JsonConverters.OneOf5.g.cs b/src/libs/Descript/Generated/Descript.JsonConverters.OneOf5.g.cs index 3c2abc9..741aa0a 100644 --- a/src/libs/Descript/Generated/Descript.JsonConverters.OneOf5.g.cs +++ b/src/libs/Descript/Generated/Descript.JsonConverters.OneOf5.g.cs @@ -111,6 +111,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 1) @@ -128,6 +132,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 2) @@ -145,6 +153,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 3) @@ -162,6 +174,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } else if (__bestIndex == 4) @@ -179,6 +195,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -197,6 +217,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) @@ -214,6 +238,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) @@ -231,6 +259,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) @@ -248,6 +280,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) @@ -265,6 +301,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } var __value = new global::Descript.OneOf(