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 @@ -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)
Expand All @@ -363,7 +363,7 @@ partial void ProcessAsyncParseParseAsyncPostResponseContent(

throw global::Reducto.ApiException<global::Reducto.HTTPValidationError>.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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -352,7 +352,7 @@ partial void ProcessCancelJobCancelJobIdPostResponseContent(

throw global::Reducto.ApiException<global::Reducto.HTTPValidationError>.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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -363,7 +363,7 @@ partial void ProcessClassifyClassifyPostResponseContent(

throw global::Reducto.ApiException<global::Reducto.HTTPValidationError>.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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -363,7 +363,7 @@ partial void ProcessEditAsyncEditAsyncPostResponseContent(

throw global::Reducto.ApiException<global::Reducto.HTTPValidationError>.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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -363,7 +363,7 @@ partial void ProcessEditEditPostResponseContent(

throw global::Reducto.ApiException<global::Reducto.HTTPValidationError>.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,
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
Loading
Loading