From 1d151142dd9b17db7ab9c2416de68884f8cd0db8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 10 Jun 2026 15:38:20 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...FilesClient.CreateWByWIdFilesByFileId.g.cs | 32 +++++++++++++++++++ src/libs/Dust/openapi.yaml | 3 ++ 2 files changed, 35 insertions(+) diff --git a/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs b/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs index 011834f..f4f20ae 100644 --- a/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs +++ b/src/libs/Dust/Generated/Dust.PrivateFilesClient.CreateWByWIdFilesByFileId.g.cs @@ -419,6 +419,38 @@ request.Filename is null retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } + // + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + + throw global::Dust.ApiException.Create( + statusCode: __response.StatusCode, + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + responseBody: __content_400, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } // if ((int)__response.StatusCode == 403) { diff --git a/src/libs/Dust/openapi.yaml b/src/libs/Dust/openapi.yaml index db63043..4801e36 100644 --- a/src/libs/Dust/openapi.yaml +++ b/src/libs/Dust/openapi.yaml @@ -8461,6 +8461,9 @@ } } }, + "400": { + "description": "Invalid file content (e.g. a CSV with an unsupported encoding)" + }, "403": { "description": "Permission denied" },