diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AllOf2.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AllOf2.g.cs index 619f443..5295578 100644 --- a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AllOf2.g.cs +++ b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AllOf2.g.cs @@ -30,6 +30,10 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } T2? value2 = default; try @@ -44,6 +48,10 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization 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::ModerationAPI.AllOf( value1, diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AnyOf2.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AnyOf2.g.cs index 2a655c4..f866a7a 100644 --- a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AnyOf2.g.cs +++ b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AnyOf2.g.cs @@ -72,6 +72,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization 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) @@ -89,6 +93,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -107,6 +115,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization 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) @@ -124,6 +136,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization 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::ModerationAPI.AnyOf( diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AnyOf3.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AnyOf3.g.cs index ab09412..a4a8dbc 100644 --- a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AnyOf3.g.cs +++ b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.AnyOf3.g.cs @@ -85,6 +85,10 @@ public class AnyOfJsonConverter : 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 AnyOfJsonConverter : 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 AnyOfJsonConverter : 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 AnyOfJsonConverter : 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 AnyOfJsonConverter : 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 AnyOfJsonConverter : 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::ModerationAPI.AnyOf( diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf2.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf2.g.cs index 1b399b3..5d53ba5 100644 --- a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf2.g.cs +++ b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf2.g.cs @@ -72,6 +72,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization 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) @@ -89,6 +93,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -107,6 +115,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization 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) @@ -124,6 +136,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization 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::ModerationAPI.OneOf( diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf31.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf31.g.cs index 3faa728..f82aaf2 100644 --- a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf31.g.cs +++ b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf31.g.cs @@ -449,6 +449,10 @@ public class OneOfJsonConverter( diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf4.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf4.g.cs index a0751d2..1f3e901 100644 --- a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf4.g.cs +++ b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf4.g.cs @@ -98,6 +98,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria 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) @@ -115,6 +119,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria 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) @@ -132,6 +140,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria 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) @@ -149,6 +161,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader") + { + // Legacy enum converters signal an incompatible JSON token with this exception. + } } } @@ -167,6 +183,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria 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) @@ -184,6 +204,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria 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) @@ -201,6 +225,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria 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) @@ -218,6 +246,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria 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::ModerationAPI.OneOf( diff --git a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf5.g.cs b/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf5.g.cs index b0e84a6..dabb00b 100644 --- a/src/libs/ModerationAPI/Generated/ModerationAPI.JsonConverters.OneOf5.g.cs +++ b/src/libs/ModerationAPI/Generated/ModerationAPI.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::ModerationAPI.OneOf(