Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/libs/Baseten/Generated/Baseten.JsonConverters.AnyOf2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public class AnyOfJsonConverter<T1, T2> : 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)
Expand All @@ -89,6 +93,10 @@ public class AnyOfJsonConverter<T1, T2> : 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.
}
}
}

Expand All @@ -107,6 +115,10 @@ public class AnyOfJsonConverter<T1, T2> : 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)
Expand All @@ -124,6 +136,10 @@ public class AnyOfJsonConverter<T1, T2> : 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::Baseten.AnyOf<T1, T2>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public class CreateSandboxPreviewRequestV1JsonConverter : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}

global::Baseten.CreateSandboxPreviewRequestV1Variant2? createSandboxPreviewRequestV1Variant2 = default;
try
Expand All @@ -45,6 +49,10 @@ public class CreateSandboxPreviewRequestV1JsonConverter : global::System.Text.Js
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::Baseten.CreateSandboxPreviewRequestV1(
configuration,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public class SandboxPreviewV1JsonConverter : global::System.Text.Json.Serializat
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}

global::Baseten.SandboxPreviewV1Variant2? sandboxPreviewV1Variant2 = default;
try
Expand All @@ -45,6 +49,10 @@ public class SandboxPreviewV1JsonConverter : global::System.Text.Json.Serializat
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::Baseten.SandboxPreviewV1(
configuration,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public class SandboxV1JsonConverter : global::System.Text.Json.Serialization.Jso
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}

global::Baseten.SandboxV1Variant2? sandboxV1Variant2 = default;
try
Expand All @@ -45,6 +49,10 @@ public class SandboxV1JsonConverter : global::System.Text.Json.Serialization.Jso
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::Baseten.SandboxV1(
configuration,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public class UpdateSandboxPreviewRequestV1JsonConverter : global::System.Text.Js
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::Baseten.UpdateSandboxPreviewRequestV1(
configuration
);
Expand Down
Loading