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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Mixedbread/Generated/Mixedbread.AdminClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class AdminClient : global::Mixedbread.IAdminClient, globa
/// <summary>
///
/// </summary>
public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;


/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ partial void ProcessCreateApiKeyResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -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, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -159,7 +159,7 @@ partial void ProcessCreateApiKeyResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Mixedbread.ApiKeyCreated.FromJson(__content, JsonSerializerOptions) ??
global::Mixedbread.ApiKeyCreated.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -189,7 +189,7 @@ partial void ProcessCreateApiKeyResponseContent(
).ConfigureAwait(false);

return
await global::Mixedbread.ApiKeyCreated.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Mixedbread.ApiKeyCreated.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -152,7 +152,7 @@ partial void ProcessDeleteApiKeyResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Mixedbread.ApiKeyDeleted.FromJson(__content, JsonSerializerOptions) ??
global::Mixedbread.ApiKeyDeleted.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -182,7 +182,7 @@ partial void ProcessDeleteApiKeyResponseContent(
).ConfigureAwait(false);

return
await global::Mixedbread.ApiKeyDeleted.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Mixedbread.ApiKeyDeleted.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -166,7 +166,7 @@ partial void ProcessListApiKeysResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Mixedbread.ApiKeyListResponse.FromJson(__content, JsonSerializerOptions) ??
global::Mixedbread.ApiKeyListResponse.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -196,7 +196,7 @@ partial void ProcessListApiKeysResponseContent(
).ConfigureAwait(false);

return
await global::Mixedbread.ApiKeyListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Mixedbread.ApiKeyListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -153,7 +153,7 @@ partial void ProcessRerollApiKeyResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Mixedbread.ApiKeyCreated.FromJson(__content, JsonSerializerOptions) ??
global::Mixedbread.ApiKeyCreated.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -183,7 +183,7 @@ partial void ProcessRerollApiKeyResponseContent(
).ConfigureAwait(false);

return
await global::Mixedbread.ApiKeyCreated.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Mixedbread.ApiKeyCreated.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -152,7 +152,7 @@ partial void ProcessRetrieveApiKeyResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerOptions) ??
global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -182,7 +182,7 @@ partial void ProcessRetrieveApiKeyResponseContent(
).ConfigureAwait(false);

return
await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -152,7 +152,7 @@ partial void ProcessRevokeApiKeyResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerOptions) ??
global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -182,7 +182,7 @@ partial void ProcessRevokeApiKeyResponseContent(
).ConfigureAwait(false);

return
await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ partial void ProcessUpdateApiKeyResponseContent(
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
}
}
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down Expand Up @@ -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, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);

__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
__value_422 = global::Mixedbread.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -168,7 +168,7 @@ partial void ProcessUpdateApiKeyResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerOptions) ??
global::Mixedbread.ApiKey.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -198,7 +198,7 @@ partial void ProcessUpdateApiKeyResponseContent(
).ConfigureAwait(false);

return
await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Mixedbread.ApiKey.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public sealed partial class ApiKeysClient : global::Mixedbread.IApiKeysClient, g
/// <summary>
///
/// </summary>
public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions();
public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Mixedbread.SourceGenerationContext.Default;


/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ partial void ProcessGetBillingSummaryResponseContent(
__response.EnsureSuccessStatusCode();

return
global::Mixedbread.BillingPeriodSummary.FromJson(__content, JsonSerializerOptions) ??
global::Mixedbread.BillingPeriodSummary.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
catch (global::System.Exception __ex)
Expand Down Expand Up @@ -131,7 +131,7 @@ partial void ProcessGetBillingSummaryResponseContent(
).ConfigureAwait(false);

return
await global::Mixedbread.BillingPeriodSummary.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
await global::Mixedbread.BillingPeriodSummary.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
catch (global::System.Exception __ex)
Expand Down
Loading
Loading