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
4 changes: 2 additions & 2 deletions src/libs/Mubert/Generated/Mubert.AutoSDKHttpResponse.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests
{
send = send ?? throw new global::System.ArgumentNullException(nameof(send));
requestOptions = CloneRequestOptions(requestOptions);
if (!string.IsNullOrWhiteSpace(entityTag))
if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag))
{
requestOptions.Headers["If-None-Match"] = entityTag!;
requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag;
}

try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.AccessTokenServiceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.AccessTokenServiceResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.AccessTokenServiceResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.AccessTokenServiceResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickAccessTokenServiceResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.AccessTokenServiceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.AccessTokenServiceResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.AccessTokenServiceResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Resource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.AccessTokenPublicResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.AccessTokenPublicResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.AccessTokenPublicResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.AccessTokenPublicResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickAccessTokenPublicResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.AccessTokenPublicResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.AccessTokenPublicResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.AccessTokenPublicResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.AccessTokenPublicResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickAccessTokenPublicResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CompanyServiceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CompanyServiceResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CompanyServiceResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CompanyServiceResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCompanyServiceResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CompanyServiceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CompanyServiceResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CompanyServiceResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Resource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CompanyPublicResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CompanyPublicResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CompanyPublicResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CompanyPublicResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCompanyPublicResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CompanyPublicResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CompanyPublicResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CompanyPublicResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CompanyPublicResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCompanyPublicResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CustomerServiceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CustomerServiceResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CustomerServiceResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomerServiceResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomerServiceResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand All @@ -88,7 +88,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CustomerCustomerServiceShowResourceResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CustomerCustomerServiceShowResourceResourceVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CustomerCustomerServiceShowResourceResourceVariant2).Name}");
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomerCustomerServiceShowResourceResourceVariant2!, typeInfo);
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomerCustomerServiceShowResourceResourceVariant2(), typeInfo);
if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CustomerLicenseLimitServiceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CustomerLicenseLimitServiceResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CustomerLicenseLimitServiceResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomerLicenseLimitServiceResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomerLicenseLimitServiceResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CustomerLicenseLimitServiceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CustomerLicenseLimitServiceResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CustomerLicenseLimitServiceResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Resource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CustomerLicenseLimitPublicResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CustomerLicenseLimitPublicResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CustomerLicenseLimitPublicResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomerLicenseLimitPublicResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomerLicenseLimitPublicResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CustomerLicenseLimitPublicResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CustomerLicenseLimitPublicResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CustomerLicenseLimitPublicResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomerLicenseLimitPublicResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomerLicenseLimitPublicResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CustomerPublicResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CustomerPublicResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CustomerPublicResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomerPublicResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomerPublicResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand All @@ -88,7 +88,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.CustomerShowPublicResourceVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.CustomerShowPublicResourceVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.CustomerShowPublicResourceVariant2).Name}");
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.CustomerShowPublicResourceVariant2!, typeInfo);
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickCustomerShowPublicResourceVariant2(), typeInfo);
if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.LicenseServiceResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.LicenseServiceResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.LicenseServiceResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Resource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.LicensePublicResource), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.LicensePublicResource?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.LicensePublicResource).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.LicensePublicResource!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickLicensePublicResource(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.MetadataPagination), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.MetadataPagination?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.MetadataPagination).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.MetadataPagination!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickMetadataPagination(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand All @@ -88,7 +88,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mubert.MetadataPaginationSortableVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mubert.MetadataPaginationSortableVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mubert.MetadataPaginationSortableVariant2).Name}");
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.MetadataPaginationSortableVariant2!, typeInfo);
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickMetadataPaginationSortableVariant2(), typeInfo);
if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Loading
Loading