diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs
index 65fb9a8..71cc070 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.ReingestAllStores.g.cs
@@ -126,13 +126,13 @@ partial void ProcessReingestAllStoresResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs
index 7906455..185525f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class AdminClient : global::Mixedbread.IAdminClient, globa
///
///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;
+ public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs
index d61e19e..64af5a2 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.CreateApiKey.g.cs
@@ -72,7 +72,7 @@ partial void ProcessCreateApiKeyResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessCreateApiKeyResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -159,7 +159,7 @@ partial void ProcessCreateApiKeyResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ApiKeyCreated.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ApiKeyCreated.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -190,7 +190,7 @@ partial void ProcessCreateApiKeyResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ApiKeyCreated.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ApiKeyCreated.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs
index a54846e..e4edb9f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.DeleteApiKey.g.cs
@@ -102,13 +102,13 @@ partial void ProcessDeleteApiKeyResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -152,7 +152,7 @@ partial void ProcessDeleteApiKeyResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ApiKeyDeleted.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ApiKeyDeleted.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -183,7 +183,7 @@ partial void ProcessDeleteApiKeyResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ApiKeyDeleted.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ApiKeyDeleted.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs
index afa909c..ded6fb2 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.ListApiKeys.g.cs
@@ -116,13 +116,13 @@ partial void ProcessListApiKeysResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -166,7 +166,7 @@ partial void ProcessListApiKeysResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ApiKeyListResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ApiKeyListResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -197,7 +197,7 @@ partial void ProcessListApiKeysResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ApiKeyListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ApiKeyListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs
index e2cbcbd..9e3f0ee 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RerollApiKey.g.cs
@@ -103,13 +103,13 @@ partial void ProcessRerollApiKeyResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -153,7 +153,7 @@ partial void ProcessRerollApiKeyResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ApiKeyCreated.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ApiKeyCreated.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -184,7 +184,7 @@ partial void ProcessRerollApiKeyResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ApiKeyCreated.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ApiKeyCreated.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs
index ae92b4b..c26aace 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RetrieveApiKey.g.cs
@@ -102,13 +102,13 @@ partial void ProcessRetrieveApiKeyResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -152,7 +152,7 @@ partial void ProcessRetrieveApiKeyResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -183,7 +183,7 @@ partial void ProcessRetrieveApiKeyResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs
index 36656a8..0ac6545 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.RevokeApiKey.g.cs
@@ -102,13 +102,13 @@ partial void ProcessRevokeApiKeyResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -152,7 +152,7 @@ partial void ProcessRevokeApiKeyResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -183,7 +183,7 @@ partial void ProcessRevokeApiKeyResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs
index 4a47c99..66db4ef 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.UpdateApiKey.g.cs
@@ -80,7 +80,7 @@ partial void ProcessUpdateApiKeyResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -118,13 +118,13 @@ partial void ProcessUpdateApiKeyResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -168,7 +168,7 @@ partial void ProcessUpdateApiKeyResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -199,7 +199,7 @@ partial void ProcessUpdateApiKeyResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.g.cs
index 356ef57..fc4a1df 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ApiKeysClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class ApiKeysClient : global::Mixedbread.IApiKeysClient, g
///
///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;
+ public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs
index f12ba8a..a715c64 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetBillingSummary.g.cs
@@ -101,7 +101,7 @@ partial void ProcessGetBillingSummaryResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.BillingPeriodSummary.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.BillingPeriodSummary.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -132,7 +132,7 @@ partial void ProcessGetBillingSummaryResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.BillingPeriodSummary.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.BillingPeriodSummary.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs
index aad14cc..38e04ac 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetParsingCostHistogram.g.cs
@@ -101,7 +101,7 @@ partial void ProcessGetParsingCostHistogramResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.CostHistogramResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.CostHistogramResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -132,7 +132,7 @@ partial void ProcessGetParsingCostHistogramResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.CostHistogramResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.CostHistogramResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs
index 66cfb98..f57de42 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.GetStoreCostHistogram.g.cs
@@ -97,13 +97,13 @@ partial void ProcessGetStoreCostHistogramResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -147,7 +147,7 @@ partial void ProcessGetStoreCostHistogramResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.CostHistogramResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.CostHistogramResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -178,7 +178,7 @@ partial void ProcessGetStoreCostHistogramResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.CostHistogramResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.CostHistogramResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs
index 5c8d834..0cbf495 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.ListStoreCostInfo.g.cs
@@ -101,7 +101,7 @@ partial void ProcessListStoreCostInfoResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.StoreCostListResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.StoreCostListResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -132,7 +132,7 @@ partial void ProcessListStoreCostInfoResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.StoreCostListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.StoreCostListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.g.cs
index 205ea97..b22751e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.BillingClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class BillingClient : global::Mixedbread.IBillingClient, g
///
///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;
+ public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.g.cs
index 727f90a..bebe97e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.CompletionsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class CompletionsClient : global::Mixedbread.ICompletionsC
///
///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;
+ public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs
index ec84ad1..0fdfd6e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.AuthorizeDataSource.g.cs
@@ -108,13 +108,13 @@ partial void ProcessAuthorizeDataSourceResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs
index 9612d5d..392c94a 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateConnector.g.cs
@@ -80,7 +80,7 @@ partial void ProcessCreateConnectorResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -118,13 +118,13 @@ partial void ProcessCreateConnectorResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -168,7 +168,7 @@ partial void ProcessCreateConnectorResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSourceConnector.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSourceConnector.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -199,7 +199,7 @@ partial void ProcessCreateConnectorResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSourceConnector.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSourceConnector.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs
index 16b90a3..af9a84d 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.CreateDataSource.g.cs
@@ -70,7 +70,7 @@ partial void ProcessCreateDataSourceResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -107,13 +107,13 @@ partial void ProcessCreateDataSourceResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -157,7 +157,7 @@ partial void ProcessCreateDataSourceResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSource.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSource.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -188,7 +188,7 @@ partial void ProcessCreateDataSourceResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs
index 541d818..d154b66 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteConnector.g.cs
@@ -111,13 +111,13 @@ partial void ProcessDeleteConnectorResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -161,7 +161,7 @@ partial void ProcessDeleteConnectorResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSourceConnectorDeleted.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSourceConnectorDeleted.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -192,7 +192,7 @@ partial void ProcessDeleteConnectorResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSourceConnectorDeleted.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSourceConnectorDeleted.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs
index 5b3b5a3..4b5cafe 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.DeleteDataSource.g.cs
@@ -100,13 +100,13 @@ partial void ProcessDeleteDataSourceResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -150,7 +150,7 @@ partial void ProcessDeleteDataSourceResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSourceDeleted.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSourceDeleted.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -181,7 +181,7 @@ partial void ProcessDeleteDataSourceResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSourceDeleted.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSourceDeleted.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs
index 5aa2598..c38f650 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetConnector.g.cs
@@ -111,13 +111,13 @@ partial void ProcessGetConnectorResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -161,7 +161,7 @@ partial void ProcessGetConnectorResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSourceConnector.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSourceConnector.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -192,7 +192,7 @@ partial void ProcessGetConnectorResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSourceConnector.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSourceConnector.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs
index d3cc1fd..58748a2 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.GetDataSource.g.cs
@@ -102,13 +102,13 @@ partial void ProcessGetDataSourceResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -152,7 +152,7 @@ partial void ProcessGetDataSourceResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSource.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSource.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -183,7 +183,7 @@ partial void ProcessGetDataSourceResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs
index a48f78f..87e4008 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListConnectors.g.cs
@@ -143,13 +143,13 @@ partial void ProcessListConnectorsResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -193,7 +193,7 @@ partial void ProcessListConnectorsResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ConnectorListResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ConnectorListResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -224,7 +224,7 @@ partial void ProcessListConnectorsResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ConnectorListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ConnectorListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs
index 3017547..11e9db1 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.ListDataSources.g.cs
@@ -132,13 +132,13 @@ partial void ProcessListDataSourcesResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -182,7 +182,7 @@ partial void ProcessListDataSourcesResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSourceListResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSourceListResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -213,7 +213,7 @@ partial void ProcessListDataSourcesResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSourceListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSourceListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs
index 0e8e10c..a1154b1 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.Oauth2Callback.g.cs
@@ -136,13 +136,13 @@ partial void ProcessOauth2CallbackResponse(
if (ReadResponseAsString)
{
__content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext);
+ __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, JsonSerializerOptions);
}
else
{
__content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext);
+ __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -240,13 +240,13 @@ partial void ProcessOauth2CallbackResponse(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs
index e83dc95..72c9e4d 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateConnector.g.cs
@@ -88,7 +88,7 @@ partial void ProcessUpdateConnectorResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -127,13 +127,13 @@ partial void ProcessUpdateConnectorResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -177,7 +177,7 @@ partial void ProcessUpdateConnectorResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSourceConnector.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSourceConnector.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -208,7 +208,7 @@ partial void ProcessUpdateConnectorResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSourceConnector.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSourceConnector.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs
index 9bb73de..4d1db1e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.UpdateDataSource.g.cs
@@ -78,7 +78,7 @@ partial void ProcessUpdateDataSourceResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -116,13 +116,13 @@ partial void ProcessUpdateDataSourceResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -166,7 +166,7 @@ partial void ProcessUpdateDataSourceResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.DataSource.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.DataSource.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -197,7 +197,7 @@ partial void ProcessUpdateDataSourceResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.DataSource.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.DataSource.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.g.cs
index 613304d..b5e0766 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.DataSourcesClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class DataSourcesClient : global::Mixedbread.IDataSourcesC
///
///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;
+ public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs
index 51ad27d..87f7a7b 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateExtractionJob.g.cs
@@ -72,7 +72,7 @@ partial void ProcessCreateExtractionJobResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessCreateExtractionJobResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -159,7 +159,7 @@ partial void ProcessCreateExtractionJobResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ExtractionJob.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ExtractionJob.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -190,7 +190,7 @@ partial void ProcessCreateExtractionJobResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ExtractionJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ExtractionJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs
index c9b56ea..dc100f4 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.CreateSchema.g.cs
@@ -72,7 +72,7 @@ partial void ProcessCreateSchemaResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessCreateSchemaResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -159,7 +159,7 @@ partial void ProcessCreateSchemaResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.CreatedJsonSchema.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.CreatedJsonSchema.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -190,7 +190,7 @@ partial void ProcessCreateSchemaResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.CreatedJsonSchema.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.CreatedJsonSchema.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs
index dd7c326..2e2bd0a 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.EnhanceSchema.g.cs
@@ -72,7 +72,7 @@ partial void ProcessEnhanceSchemaResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessEnhanceSchemaResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -159,7 +159,7 @@ partial void ProcessEnhanceSchemaResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.EnhancedJsonSchema.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.EnhancedJsonSchema.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -190,7 +190,7 @@ partial void ProcessEnhanceSchemaResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.EnhancedJsonSchema.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.EnhancedJsonSchema.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs
index 18ca64a..999174f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ExtractContent.g.cs
@@ -72,7 +72,7 @@ partial void ProcessExtractContentResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessExtractContentResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -159,7 +159,7 @@ partial void ProcessExtractContentResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ExtractionResult.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ExtractionResult.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -190,7 +190,7 @@ partial void ProcessExtractContentResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ExtractionResult.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ExtractionResult.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs
index 7bf975e..77148f9 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.RetrieveExtractionJob.g.cs
@@ -102,13 +102,13 @@ partial void ProcessRetrieveExtractionJobResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -152,7 +152,7 @@ partial void ProcessRetrieveExtractionJobResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ExtractionJob.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ExtractionJob.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -183,7 +183,7 @@ partial void ProcessRetrieveExtractionJobResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ExtractionJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ExtractionJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs
index d583d1e..6670693 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.ValidateSchema.g.cs
@@ -72,7 +72,7 @@ partial void ProcessValidateSchemaResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -109,13 +109,13 @@ partial void ProcessValidateSchemaResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -159,7 +159,7 @@ partial void ProcessValidateSchemaResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.ValidatedJsonSchema.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.ValidatedJsonSchema.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -190,7 +190,7 @@ partial void ProcessValidateSchemaResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.ValidatedJsonSchema.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.ValidatedJsonSchema.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.g.cs
index b2288d1..87d9f8f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ExtractionsClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class ExtractionsClient : global::Mixedbread.IExtractionsC
///
///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;
+ public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs
index bb77f13..bb9cea8 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.AbortMultipartUpload.g.cs
@@ -98,13 +98,13 @@ partial void ProcessAbortMultipartUploadResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -148,7 +148,7 @@ partial void ProcessAbortMultipartUploadResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.FileDeleted.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.FileDeleted.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -179,7 +179,7 @@ partial void ProcessAbortMultipartUploadResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.FileDeleted.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.FileDeleted.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs
index bd48955..0d42c2a 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CompleteMultipartUpload.g.cs
@@ -76,7 +76,7 @@ partial void ProcessCompleteMultipartUploadResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -114,13 +114,13 @@ partial void ProcessCompleteMultipartUploadResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -164,7 +164,7 @@ partial void ProcessCompleteMultipartUploadResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.FileObject.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.FileObject.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -195,7 +195,7 @@ partial void ProcessCompleteMultipartUploadResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.FileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.FileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs
index cba09e2..89e1004 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateFile.g.cs
@@ -114,13 +114,13 @@ partial void ProcessCreateFileResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -164,7 +164,7 @@ partial void ProcessCreateFileResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.FileObject.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.FileObject.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -195,7 +195,7 @@ partial void ProcessCreateFileResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.FileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.FileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs
index 1fdf102..8b9d339 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.CreateMultipartUpload.g.cs
@@ -68,7 +68,7 @@ partial void ProcessCreateMultipartUploadResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
- var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
@@ -105,13 +105,13 @@ partial void ProcessCreateMultipartUploadResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -155,7 +155,7 @@ partial void ProcessCreateMultipartUploadResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.CreateMultipartUploadResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.CreateMultipartUploadResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -186,7 +186,7 @@ partial void ProcessCreateMultipartUploadResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.CreateMultipartUploadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.CreateMultipartUploadResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs
index 1080f20..fa575ae 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DeleteFile.g.cs
@@ -102,13 +102,13 @@ partial void ProcessDeleteFileResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -152,7 +152,7 @@ partial void ProcessDeleteFileResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.FileDeleted.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.FileDeleted.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -183,7 +183,7 @@ partial void ProcessDeleteFileResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.FileDeleted.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.FileDeleted.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs
index 565bdee..1dce04f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.DownloadFile.g.cs
@@ -102,13 +102,13 @@ partial void ProcessDownloadFileResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs
index ff6da3a..ab6f002 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.GetMultipartUpload.g.cs
@@ -98,13 +98,13 @@ partial void ProcessGetMultipartUploadResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -148,7 +148,7 @@ partial void ProcessGetMultipartUploadResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.MultipartUploadDetailResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.MultipartUploadDetailResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -179,7 +179,7 @@ partial void ProcessGetMultipartUploadResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.MultipartUploadDetailResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.MultipartUploadDetailResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs
index a076776..b24c791 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListFiles.g.cs
@@ -143,13 +143,13 @@ partial void ProcessListFilesResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -193,7 +193,7 @@ partial void ProcessListFilesResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.FileListResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.FileListResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -224,7 +224,7 @@ partial void ProcessListFilesResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.FileListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.FileListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs
index 9dd662c..c18586d 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.ListMultipartUploads.g.cs
@@ -102,7 +102,7 @@ partial void ProcessListMultipartUploadsResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.MultipartUploadListResponse.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.MultipartUploadListResponse.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -133,7 +133,7 @@ partial void ProcessListMultipartUploadsResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.MultipartUploadListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.MultipartUploadListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs
index e799500..b3ba99c 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.RetrieveFile.g.cs
@@ -102,13 +102,13 @@ partial void ProcessRetrieveFileResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -152,7 +152,7 @@ partial void ProcessRetrieveFileResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.FileObject.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.FileObject.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -183,7 +183,7 @@ partial void ProcessRetrieveFileResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.FileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.FileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs
index 8bbc2c6..f53d1fb 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.UpdateFile.g.cs
@@ -126,13 +126,13 @@ partial void ProcessUpdateFileResponseContent(
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
+ __value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
}
}
catch (global::System.Exception __ex)
@@ -176,7 +176,7 @@ partial void ProcessUpdateFileResponseContent(
__response.EnsureSuccessStatusCode();
return
- global::Mixedbread.FileObject.FromJson(__content, JsonSerializerContext) ??
+ global::Mixedbread.FileObject.FromJson(__content, JsonSerializerOptions) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
@@ -207,7 +207,7 @@ partial void ProcessUpdateFileResponseContent(
).ConfigureAwait(false);
return
- await global::Mixedbread.FileObject.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
+ await global::Mixedbread.FileObject.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.g.cs
index 861b755..c953449 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.FilesClient.g.cs
@@ -33,7 +33,7 @@ public sealed partial class FilesClient : global::Mixedbread.IFilesClient, globa
///
///
///
- public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;
+ public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IAdminClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IAdminClient.g.cs
index 55583c0..1354af0 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IAdminClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IAdminClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IAdminClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IApiKeysClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IApiKeysClient.g.cs
index faf2668..07617ef 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IApiKeysClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IApiKeysClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IApiKeysClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IBillingClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IBillingClient.g.cs
index ca66cd0..89cdd8e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IBillingClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IBillingClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IBillingClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ICompletionsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ICompletionsClient.g.cs
index e2a3100..504dc25 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ICompletionsClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ICompletionsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ICompletionsClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IDataSourcesClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IDataSourcesClient.g.cs
index f039841..e3c7349 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IDataSourcesClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IDataSourcesClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IDataSourcesClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IExtractionsClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IExtractionsClient.g.cs
index 705f678..b91c980 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IExtractionsClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IExtractionsClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IExtractionsClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IFilesClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IFilesClient.g.cs
index 85c3006..40185cb 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IFilesClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IFilesClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IFilesClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.g.cs
index 471794b..6f53d30 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IMixedbreadClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IMixedbreadClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
///
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IParsingClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IParsingClient.g.cs
index 7633e0a..feecd1f 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IParsingClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IParsingClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IParsingClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.ISchemasClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.ISchemasClient.g.cs
index f384659..923624c 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.ISchemasClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.ISchemasClient.g.cs
@@ -36,7 +36,7 @@ public partial interface ISchemasClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.g.cs
index eaac466..067a264 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.IStoresClient.g.cs
@@ -36,7 +36,7 @@ public partial interface IStoresClient : global::System.IDisposable
///
///
///
- global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }
+ global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; }
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf2.g.cs
index 08a4123..817e1db 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf2.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf2.g.cs
@@ -11,8 +11,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
@@ -27,27 +26,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization
}
var __score0 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score0++;
- }
- }
- }
var __score1 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score1++;
- }
- }
- }
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
@@ -62,9 +41,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -79,9 +56,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -97,9 +72,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -111,9 +84,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -138,20 +109,15 @@ public override void Write(
global::Mixedbread.AnyOf value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsValue1)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options);
}
else if (value.IsValue2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf3.g.cs
index bf2c760..b9f60c1 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf3.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf3.g.cs
@@ -11,8 +11,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
@@ -27,38 +26,8 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa
}
var __score0 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score0++;
- }
- }
- }
var __score1 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score1++;
- }
- }
- }
var __score2 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score2++;
- }
- }
- }
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
@@ -75,9 +44,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -92,9 +59,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -109,9 +74,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
- value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -127,9 +90,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -141,9 +102,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -155,9 +114,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
- value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -184,26 +141,19 @@ public override void Write(
global::Mixedbread.AnyOf value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsValue1)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options);
}
else if (value.IsValue2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options);
}
else if (value.IsValue3)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf4.g.cs
index 6f2eb59..f2cdb8b 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf4.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AnyOf4.g.cs
@@ -11,8 +11,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
@@ -27,49 +26,9 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
}
var __score0 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score0++;
- }
- }
- }
var __score1 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score1++;
- }
- }
- }
var __score2 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score2++;
- }
- }
- }
var __score3 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score3++;
- }
- }
- }
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
@@ -88,9 +47,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -105,9 +62,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -122,9 +77,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
- value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -139,9 +92,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}");
- value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -157,9 +108,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -171,9 +120,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -185,9 +132,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
- value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -199,9 +144,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}");
- value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -230,32 +173,23 @@ public override void Write(
global::Mixedbread.AnyOf value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsValue1)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options);
}
else if (value.IsValue2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options);
}
else if (value.IsValue3)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options);
}
else if (value.IsValue4)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant1.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant1.g.cs
index 9fa5d63..6acacf3 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant1.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant1.g.cs
@@ -12,28 +12,21 @@ public class AuthParamsVariant1JsonConverter : global::System.Text.Json.Serializ
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceAuthParamsVariant1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.DataSourceAuthParamsVariant1Discriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.DataSourceOAuth2Params? oauth2 = default;
if (discriminator?.Type == global::Mixedbread.DataSourceAuthParamsVariant1DiscriminatorType.Oauth2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceOAuth2Params), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.DataSourceOAuth2Params)}");
- oauth2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ oauth2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.DataSourceApiKeyParams? apiKey = default;
if (discriminator?.Type == global::Mixedbread.DataSourceAuthParamsVariant1DiscriminatorType.ApiKey)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceApiKeyParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.DataSourceApiKeyParams)}");
- apiKey = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ apiKey = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.AuthParamsVariant1(
@@ -52,20 +45,15 @@ public override void Write(
global::Mixedbread.AuthParamsVariant1 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsOauth2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceOAuth2Params), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.DataSourceOAuth2Params).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2, typeof(global::Mixedbread.DataSourceOAuth2Params), options);
}
else if (value.IsApiKey)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.DataSourceApiKeyParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.DataSourceApiKeyParams).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey, typeof(global::Mixedbread.DataSourceApiKeyParams), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant12.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant12.g.cs
index adf526a..ab1331e 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant12.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant12.g.cs
@@ -12,21 +12,16 @@ public class AuthParamsVariant12JsonConverter : global::System.Text.Json.Seriali
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.OAuth2CreateOrUpdateParams? oauth2 = default;
if (discriminator?.Type == global::Mixedbread.LinearDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType.Oauth2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.OAuth2CreateOrUpdateParams)}");
- oauth2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ oauth2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.AuthParamsVariant12(
@@ -43,14 +38,11 @@ public override void Write(
global::Mixedbread.AuthParamsVariant12 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsOauth2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.OAuth2CreateOrUpdateParams).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2, typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant13.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant13.g.cs
index 59cd691..6f68b89 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant13.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.AuthParamsVariant13.g.cs
@@ -12,28 +12,21 @@ public class AuthParamsVariant13JsonConverter : global::System.Text.Json.Seriali
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1Discriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.OAuth2CreateOrUpdateParams? oauth2 = default;
if (discriminator?.Type == global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType.Oauth2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.OAuth2CreateOrUpdateParams)}");
- oauth2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ oauth2 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.ApiKeyCreateOrUpdateParams? apiKey = default;
if (discriminator?.Type == global::Mixedbread.NotionDataSourceCreateOrUpdateParamsAuthParamsVariant1DiscriminatorType.ApiKey)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ApiKeyCreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.ApiKeyCreateOrUpdateParams)}");
- apiKey = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ apiKey = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.AuthParamsVariant13(
@@ -52,20 +45,15 @@ public override void Write(
global::Mixedbread.AuthParamsVariant13 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsOauth2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.OAuth2CreateOrUpdateParams).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Oauth2, typeof(global::Mixedbread.OAuth2CreateOrUpdateParams), options);
}
else if (value.IsApiKey)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ApiKeyCreateOrUpdateParams), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ApiKeyCreateOrUpdateParams).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ApiKey, typeof(global::Mixedbread.ApiKeyCreateOrUpdateParams), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item.g.cs
index 5122357..3777c27 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item.g.cs
@@ -12,42 +12,31 @@ public class ChunksVariant1ItemJsonConverter : global::System.Text.Json.Serializ
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ScoredStoreFileChunksVariant1ItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.ScoredStoreFileChunksVariant1ItemDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? text = default;
if (discriminator?.Type == global::Mixedbread.ScoredStoreFileChunksVariant1ItemDiscriminatorType.Text)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk)}");
- text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? imageUrl = default;
if (discriminator?.Type == global::Mixedbread.ScoredStoreFileChunksVariant1ItemDiscriminatorType.ImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk)}");
- imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? audioUrl = default;
if (discriminator?.Type == global::Mixedbread.ScoredStoreFileChunksVariant1ItemDiscriminatorType.AudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk)}");
- audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? videoUrl = default;
if (discriminator?.Type == global::Mixedbread.ScoredStoreFileChunksVariant1ItemDiscriminatorType.VideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk)}");
- videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.ChunksVariant1Item(
@@ -70,32 +59,23 @@ public override void Write(
global::Mixedbread.ChunksVariant1Item value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsText)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options);
}
else if (value.IsImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options);
}
else if (value.IsAudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl, typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options);
}
else if (value.IsVideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl, typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item2.g.cs
index c5cd330..cb562a8 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item2.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item2.g.cs
@@ -12,42 +12,31 @@ public class ChunksVariant1Item2JsonConverter : global::System.Text.Json.Seriali
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ScoredVectorStoreFileChunksVariant1ItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.ScoredVectorStoreFileChunksVariant1ItemDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? text = default;
if (discriminator?.Type == global::Mixedbread.ScoredVectorStoreFileChunksVariant1ItemDiscriminatorType.Text)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk)}");
- text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? imageUrl = default;
if (discriminator?.Type == global::Mixedbread.ScoredVectorStoreFileChunksVariant1ItemDiscriminatorType.ImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk)}");
- imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? audioUrl = default;
if (discriminator?.Type == global::Mixedbread.ScoredVectorStoreFileChunksVariant1ItemDiscriminatorType.AudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk)}");
- audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? videoUrl = default;
if (discriminator?.Type == global::Mixedbread.ScoredVectorStoreFileChunksVariant1ItemDiscriminatorType.VideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk)}");
- videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.ChunksVariant1Item2(
@@ -70,32 +59,23 @@ public override void Write(
global::Mixedbread.ChunksVariant1Item2 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsText)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options);
}
else if (value.IsImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options);
}
else if (value.IsAudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl, typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options);
}
else if (value.IsVideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl, typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item3.g.cs
index 864f58f..0cbd90d 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item3.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item3.g.cs
@@ -12,42 +12,31 @@ public class ChunksVariant1Item3JsonConverter : global::System.Text.Json.Seriali
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreFileChunksVariant1ItemDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.TextInputChunk? text = default;
if (discriminator?.Type == global::Mixedbread.StoreFileChunksVariant1ItemDiscriminatorType.Text)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.TextInputChunk)}");
- text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.ImageUrlInputChunk? imageUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreFileChunksVariant1ItemDiscriminatorType.ImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.ImageUrlInputChunk)}");
- imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.AudioUrlInputChunk? audioUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreFileChunksVariant1ItemDiscriminatorType.AudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.AudioUrlInputChunk)}");
- audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.VideoUrlInputChunk? videoUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreFileChunksVariant1ItemDiscriminatorType.VideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.VideoUrlInputChunk)}");
- videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.ChunksVariant1Item3(
@@ -70,32 +59,23 @@ public override void Write(
global::Mixedbread.ChunksVariant1Item3 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsText)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::Mixedbread.TextInputChunk), options);
}
else if (value.IsImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeof(global::Mixedbread.ImageUrlInputChunk), options);
}
else if (value.IsAudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl, typeof(global::Mixedbread.AudioUrlInputChunk), options);
}
else if (value.IsVideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl, typeof(global::Mixedbread.VideoUrlInputChunk), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item4.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item4.g.cs
index f140704..c1b6edc 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item4.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.ChunksVariant1Item4.g.cs
@@ -12,42 +12,31 @@ public class ChunksVariant1Item4JsonConverter : global::System.Text.Json.Seriali
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.TextInputChunk? text = default;
if (discriminator?.Type == global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminatorType.Text)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.TextInputChunk)}");
- text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.ImageUrlInputChunk? imageUrl = default;
if (discriminator?.Type == global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminatorType.ImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.ImageUrlInputChunk)}");
- imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.AudioUrlInputChunk? audioUrl = default;
if (discriminator?.Type == global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminatorType.AudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.AudioUrlInputChunk)}");
- audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.VideoUrlInputChunk? videoUrl = default;
if (discriminator?.Type == global::Mixedbread.VectorStoreFileChunksVariant1ItemDiscriminatorType.VideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.VideoUrlInputChunk)}");
- videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.ChunksVariant1Item4(
@@ -70,32 +59,23 @@ public override void Write(
global::Mixedbread.ChunksVariant1Item4 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsText)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.TextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.TextInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::Mixedbread.TextInputChunk), options);
}
else if (value.IsImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ImageUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeof(global::Mixedbread.ImageUrlInputChunk), options);
}
else if (value.IsAudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.AudioUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl, typeof(global::Mixedbread.AudioUrlInputChunk), options);
}
else if (value.IsVideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.VideoUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl, typeof(global::Mixedbread.VideoUrlInputChunk), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs
index 01935a1..f645d48 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem.g.cs
@@ -12,28 +12,21 @@ public class DataItemJsonConverter : global::System.Text.Json.Serialization.Json
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreEventListResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreEventListResponseDataItemDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.StoreIngestionEvent? ingestion = default;
if (discriminator?.Type == global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType.Ingestion)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreIngestionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreIngestionEvent)}");
- ingestion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ ingestion = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.StoreSearchEvent? search = default;
if (discriminator?.Type == global::Mixedbread.StoreEventListResponseDataItemDiscriminatorType.Search)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreSearchEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreSearchEvent)}");
- search = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ search = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.DataItem(
@@ -52,20 +45,15 @@ public override void Write(
global::Mixedbread.DataItem value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsIngestion)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreIngestionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.StoreIngestionEvent).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ingestion!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ingestion, typeof(global::Mixedbread.StoreIngestionEvent), options);
}
else if (value.IsSearch)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreSearchEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.StoreSearchEvent).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Search, typeof(global::Mixedbread.StoreSearchEvent), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs
index 0e18972..038432c 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem2.g.cs
@@ -12,42 +12,31 @@ public class DataItem2JsonConverter : global::System.Text.Json.Serialization.Jso
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.StoreSearchResponseDataItemDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk? text = default;
if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.Text)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk)}");
- text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk? imageUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.ImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk)}");
- imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk? audioUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.AudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk)}");
- audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk? videoUrl = default;
if (discriminator?.Type == global::Mixedbread.StoreSearchResponseDataItemDiscriminatorType.VideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk)}");
- videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.DataItem2(
@@ -70,32 +59,23 @@ public override void Write(
global::Mixedbread.DataItem2 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsText)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredTextInputChunk), options);
}
else if (value.IsImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredImageUrlInputChunk), options);
}
else if (value.IsAudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl, typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredAudioUrlInputChunk), options);
}
else if (value.IsVideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl, typeof(global::Mixedbread.MxbaiOmniCoreStoreModelsChunkTypesScoredVideoUrlInputChunk), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs
index e21a363..d859ef5 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DataItem3.g.cs
@@ -12,42 +12,31 @@ public class DataItem3JsonConverter : global::System.Text.Json.Serialization.Jso
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk? text = default;
if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.Text)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk)}");
- text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ text = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk? imageUrl = default;
if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.ImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk)}");
- imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ imageUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk? audioUrl = default;
if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.AudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk)}");
- audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ audioUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk? videoUrl = default;
if (discriminator?.Type == global::Mixedbread.VectorStoreSearchResponseDataItemDiscriminatorType.VideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk)}");
- videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ videoUrl = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.DataItem3(
@@ -70,32 +59,23 @@ public override void Write(
global::Mixedbread.DataItem3 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsText)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredTextInputChunk), options);
}
else if (value.IsImageUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageUrl, typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredImageUrlInputChunk), options);
}
else if (value.IsAudioUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.AudioUrl, typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredAudioUrlInputChunk), options);
}
else if (value.IsVideoUrl)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.VideoUrl, typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsScoredVideoUrlInputChunk), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule.g.cs
index 4a6ce39..0017032 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule.g.cs
@@ -12,42 +12,31 @@ public class DeletedRuleJsonConverter : global::System.Text.Json.Serialization.J
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.QueryStringSubstitutionRule? queryString = default;
if (discriminator?.Type == global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType.QueryString)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.QueryStringSubstitutionRule)}");
- queryString = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ queryString = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.QueryRegexSubstitutionRule? queryRegex = default;
if (discriminator?.Type == global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType.QueryRegex)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.QueryRegexSubstitutionRule)}");
- queryRegex = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ queryRegex = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.ChunkSearchResultRule? chunkSearchResult = default;
if (discriminator?.Type == global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType.ChunkSearchResult)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.ChunkSearchResultRule)}");
- chunkSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ chunkSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.FileSearchResultRule? fileSearchResult = default;
if (discriminator?.Type == global::Mixedbread.MxbaiOmniApiRoutesV1DeprecatedVectorStoresModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType.FileSearchResult)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.FileSearchResultRule)}");
- fileSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ fileSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.DeletedRule(
@@ -70,32 +59,23 @@ public override void Write(
global::Mixedbread.DeletedRule value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsQueryString)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString, typeof(global::Mixedbread.QueryStringSubstitutionRule), options);
}
else if (value.IsQueryRegex)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex, typeof(global::Mixedbread.QueryRegexSubstitutionRule), options);
}
else if (value.IsChunkSearchResult)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult, typeof(global::Mixedbread.ChunkSearchResultRule), options);
}
else if (value.IsFileSearchResult)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult, typeof(global::Mixedbread.FileSearchResultRule), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule2.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule2.g.cs
index ef1ce7a..3da2a65 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule2.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.DeletedRule2.g.cs
@@ -12,42 +12,31 @@ public class DeletedRule2JsonConverter : global::System.Text.Json.Serialization.
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminator)}");
- var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo);
+ var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, options);
global::Mixedbread.QueryStringSubstitutionRule? queryString = default;
if (discriminator?.Type == global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType.QueryString)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.QueryStringSubstitutionRule)}");
- queryString = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ queryString = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.QueryRegexSubstitutionRule? queryRegex = default;
if (discriminator?.Type == global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType.QueryRegex)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.QueryRegexSubstitutionRule)}");
- queryRegex = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ queryRegex = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.ChunkSearchResultRule? chunkSearchResult = default;
if (discriminator?.Type == global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType.ChunkSearchResult)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.ChunkSearchResultRule)}");
- chunkSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ chunkSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
global::Mixedbread.FileSearchResultRule? fileSearchResult = default;
if (discriminator?.Type == global::Mixedbread.MxbaiOmniApiRoutesV1StoresRulesModelsSearchRuleSpecificDeletedDeletedRuleDiscriminatorType.FileSearchResult)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::Mixedbread.FileSearchResultRule)}");
- fileSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo);
+ fileSearchResult = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, options);
}
var __value = new global::Mixedbread.DeletedRule2(
@@ -70,32 +59,23 @@ public override void Write(
global::Mixedbread.DeletedRule2 value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsQueryString)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryStringSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryStringSubstitutionRule).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryString, typeof(global::Mixedbread.QueryStringSubstitutionRule), options);
}
else if (value.IsQueryRegex)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.QueryRegexSubstitutionRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.QueryRegexSubstitutionRule).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.QueryRegex, typeof(global::Mixedbread.QueryRegexSubstitutionRule), options);
}
else if (value.IsChunkSearchResult)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.ChunkSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.ChunkSearchResultRule).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChunkSearchResult, typeof(global::Mixedbread.ChunkSearchResultRule), options);
}
else if (value.IsFileSearchResult)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.FileSearchResultRule), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mixedbread.FileSearchResultRule).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.FileSearchResult, typeof(global::Mixedbread.FileSearchResultRule), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs
index 84b2845..7197241 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.EmbeddingItem.g.cs
@@ -12,8 +12,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader);
@@ -28,38 +27,8 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization
}
var __score0 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score0++;
- }
- }
- }
var __score1 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score1++;
- }
- }
- }
var __score2 = 0;
- {
- var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options);
- if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object)
- {
- foreach (var __prop in __ti.Properties)
- {
- if (__jsonProps.Contains(__prop.Name)) __score2++;
- }
- }
- }
var __bestScore = 0;
var __bestIndex = -1;
if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; }
@@ -76,9 +45,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}");
- embeddingItemVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ embeddingItemVariant1 = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -93,9 +60,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}");
- embeddingItemVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ embeddingItemVariant2 = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -110,9 +75,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}");
- embeddingItemVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ embeddingItemVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -128,9 +91,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}");
- embeddingItemVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ embeddingItemVariant1 = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -142,9 +103,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}");
- embeddingItemVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ embeddingItemVariant2 = global::System.Text.Json.JsonSerializer.Deserialize>(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -156,9 +115,7 @@ public class EmbeddingItemJsonConverter : global::System.Text.Json.Serialization
try
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}");
- embeddingItemVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
+ embeddingItemVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options);
}
catch (global::System.Text.Json.JsonException)
{
@@ -185,26 +142,19 @@ public override void Write(
global::Mixedbread.EmbeddingItem value,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
if (value.IsEmbeddingItemVariant1)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant1!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant1, typeof(global::System.Collections.Generic.IList), options);
}
else if (value.IsEmbeddingItemVariant2)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo?> ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant2!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant2, typeof(global::System.Collections.Generic.IList), options);
}
else if (value.IsEmbeddingItemVariant3)
{
- var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ??
- throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}");
- global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant3!, typeInfo);
+ global::System.Text.Json.JsonSerializer.Serialize(writer, value.EmbeddingItemVariant3, typeof(string), options);
}
}
}
diff --git a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant1.g.cs b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant1.g.cs
index e62278b..e08fbc4 100644
--- a/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant1.g.cs
+++ b/src/libs/Mixedbread/Generated/Mixedbread.JsonConverters.GeneratedMetadataVariant1.g.cs
@@ -12,63 +12,46 @@ public class GeneratedMetadataVariant1JsonConverter : global::System.Text.Json.S
global::System.Type typeToConvert,
global::System.Text.Json.JsonSerializerOptions options)
{
- options = options ?? throw new global::System.ArgumentNullException(nameof(options));
- var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set.");
+ options = options ?? throw new global::System.ArgumentNullException(nameof(options));
var readerCopy = reader;
- var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mixedbread.AudioUrlInputChunkGeneratedMetadataVariant1Discriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo