diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.AsyncParseParseAsyncPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.AsyncParseParseAsyncPost.g.cs index c84e329..63eaa4f 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.AsyncParseParseAsyncPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.AsyncParseParseAsyncPost.g.cs @@ -346,13 +346,13 @@ partial void ProcessAsyncParseParseAsyncPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessAsyncParseParseAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessAsyncParseParseAsyncPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessAsyncParseParseAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.CancelJobCancelJobIdPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.CancelJobCancelJobIdPost.g.cs index 79ccf11..66be28b 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.CancelJobCancelJobIdPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.CancelJobCancelJobIdPost.g.cs @@ -335,13 +335,13 @@ partial void ProcessCancelJobCancelJobIdPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -352,7 +352,7 @@ partial void ProcessCancelJobCancelJobIdPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -393,7 +393,7 @@ partial void ProcessCancelJobCancelJobIdPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -436,7 +436,7 @@ partial void ProcessCancelJobCancelJobIdPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.ClassifyClassifyPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.ClassifyClassifyPost.g.cs index bdcca12..a78b3dd 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.ClassifyClassifyPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.ClassifyClassifyPost.g.cs @@ -346,13 +346,13 @@ partial void ProcessClassifyClassifyPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessClassifyClassifyPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessClassifyClassifyPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessClassifyClassifyPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.EditAsyncEditAsyncPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.EditAsyncEditAsyncPost.g.cs index eab7216..5673331 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.EditAsyncEditAsyncPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.EditAsyncEditAsyncPost.g.cs @@ -346,13 +346,13 @@ partial void ProcessEditAsyncEditAsyncPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessEditAsyncEditAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessEditAsyncEditAsyncPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessEditAsyncEditAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.EditEditPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.EditEditPost.g.cs index 56bc86b..b28ea28 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.EditEditPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.EditEditPost.g.cs @@ -346,13 +346,13 @@ partial void ProcessEditEditPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessEditEditPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessEditEditPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessEditEditPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.ExtractAsyncExtractAsyncPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.ExtractAsyncExtractAsyncPost.g.cs index 1b76ea5..da4dea3 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.ExtractAsyncExtractAsyncPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.ExtractAsyncExtractAsyncPost.g.cs @@ -346,13 +346,13 @@ partial void ProcessExtractAsyncExtractAsyncPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessExtractAsyncExtractAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessExtractAsyncExtractAsyncPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessExtractAsyncExtractAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.ExtractExtractPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.ExtractExtractPost.g.cs index 869fab0..72965be 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.ExtractExtractPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.ExtractExtractPost.g.cs @@ -344,13 +344,13 @@ partial void ProcessExtractExtractPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -361,7 +361,7 @@ partial void ProcessExtractExtractPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -404,7 +404,7 @@ partial void ProcessExtractExtractPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -449,7 +449,7 @@ partial void ProcessExtractExtractPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.GetJobsJobsGet.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.GetJobsJobsGet.g.cs index 1b86a75..37e0352 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.GetJobsJobsGet.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.GetJobsJobsGet.g.cs @@ -374,13 +374,13 @@ partial void ProcessGetJobsJobsGetResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -391,7 +391,7 @@ partial void ProcessGetJobsJobsGetResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -434,7 +434,7 @@ partial void ProcessGetJobsJobsGetResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -479,7 +479,7 @@ partial void ProcessGetJobsJobsGetResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.GetVersionVersionGet.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.GetVersionVersionGet.g.cs index f4b5e8d..c7c38a4 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.GetVersionVersionGet.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.GetVersionVersionGet.g.cs @@ -347,7 +347,7 @@ partial void ProcessGetVersionVersionGetResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -390,7 +390,7 @@ partial void ProcessGetVersionVersionGetResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.ParseParsePost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.ParseParsePost.g.cs index f9b08e1..580ae37 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.ParseParsePost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.ParseParsePost.g.cs @@ -344,13 +344,13 @@ partial void ProcessParseParsePostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -361,7 +361,7 @@ partial void ProcessParseParsePostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -404,7 +404,7 @@ partial void ProcessParseParsePostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -449,7 +449,7 @@ partial void ProcessParseParsePostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.PipelineAsyncPipelineAsyncPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.PipelineAsyncPipelineAsyncPost.g.cs index c403c5c..e4a1f6c 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.PipelineAsyncPipelineAsyncPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.PipelineAsyncPipelineAsyncPost.g.cs @@ -346,13 +346,13 @@ partial void ProcessPipelineAsyncPipelineAsyncPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessPipelineAsyncPipelineAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessPipelineAsyncPipelineAsyncPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessPipelineAsyncPipelineAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.PipelinePipelinePost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.PipelinePipelinePost.g.cs index 9b207b3..95a2c6e 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.PipelinePipelinePost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.PipelinePipelinePost.g.cs @@ -346,13 +346,13 @@ partial void ProcessPipelinePipelinePostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessPipelinePipelinePostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessPipelinePipelinePostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessPipelinePipelinePostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.RetrieveParseJobJobIdGet.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.RetrieveParseJobJobIdGet.g.cs index 8f69b81..5401f85 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.RetrieveParseJobJobIdGet.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.RetrieveParseJobJobIdGet.g.cs @@ -335,13 +335,13 @@ partial void ProcessRetrieveParseJobJobIdGetResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -352,7 +352,7 @@ partial void ProcessRetrieveParseJobJobIdGetResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -395,7 +395,7 @@ partial void ProcessRetrieveParseJobJobIdGetResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -440,7 +440,7 @@ partial void ProcessRetrieveParseJobJobIdGetResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.SplitAsyncSplitAsyncPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.SplitAsyncSplitAsyncPost.g.cs index c9a0e1c..95d26c5 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.SplitAsyncSplitAsyncPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.SplitAsyncSplitAsyncPost.g.cs @@ -346,13 +346,13 @@ partial void ProcessSplitAsyncSplitAsyncPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessSplitAsyncSplitAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessSplitAsyncSplitAsyncPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessSplitAsyncSplitAsyncPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.SplitSplitPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.SplitSplitPost.g.cs index 69c5d0e..f7c8480 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.SplitSplitPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.SplitSplitPost.g.cs @@ -346,13 +346,13 @@ partial void ProcessSplitSplitPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessSplitSplitPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -406,7 +406,7 @@ partial void ProcessSplitSplitPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -451,7 +451,7 @@ partial void ProcessSplitSplitPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.UploadUploadPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.UploadUploadPost.g.cs index 6f070d8..1b3f744 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.UploadUploadPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.UploadUploadPost.g.cs @@ -399,13 +399,13 @@ request.Filename is null if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -416,7 +416,7 @@ request.Filename is null throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -459,7 +459,7 @@ request.Filename is null { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -504,7 +504,7 @@ request.Filename is null throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( diff --git a/src/libs/Reducto/Generated/Reducto.ReductoClient.WebhookPortalConfigureWebhookPost.g.cs b/src/libs/Reducto/Generated/Reducto.ReductoClient.WebhookPortalConfigureWebhookPost.g.cs index 483db04..19d47be 100644 --- a/src/libs/Reducto/Generated/Reducto.ReductoClient.WebhookPortalConfigureWebhookPost.g.cs +++ b/src/libs/Reducto/Generated/Reducto.ReductoClient.WebhookPortalConfigureWebhookPost.g.cs @@ -326,13 +326,13 @@ partial void ProcessWebhookPortalConfigureWebhookPostResponseContent( if (__effectiveReadResponseAsString) { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } else { __content_422 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_422 = global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); + __value_422 = __content_422 is not { Length: > 0 } ? null : global::Reducto.HTTPValidationError.FromJson(__content_422, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -343,7 +343,7 @@ partial void ProcessWebhookPortalConfigureWebhookPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content_422 ?? __response.ReasonPhrase ?? string.Empty, + message: __content_422 is { Length: > 0 } ? __content_422 : __response.ReasonPhrase ?? string.Empty, innerException: __exception_422, responseBody: __content_422, responseObject: __value_422, @@ -384,7 +384,7 @@ partial void ProcessWebhookPortalConfigureWebhookPostResponseContent( { throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary( @@ -427,7 +427,7 @@ partial void ProcessWebhookPortalConfigureWebhookPostResponseContent( throw global::Reducto.ApiException.Create( statusCode: __response.StatusCode, - message: __content ?? __response.ReasonPhrase ?? string.Empty, + message: __content is { Length: > 0 } ? __content : __response.ReasonPhrase ?? string.Empty, innerException: __ex, responseBody: __content, responseHeaders: global::System.Linq.Enumerable.ToDictionary(