ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.459.2

This commit is contained in:
speakeasybot
2024-12-21 00:22:05 +00:00
parent 14e54fa017
commit 0ec48b6a1d
320 changed files with 1022 additions and 2124 deletions

View File

@@ -276,7 +276,7 @@ namespace LukeHagar.PlexAPI.SDK.Utils
byte[]? content = null;
string fileName = "";
string fieldName = "";
string fieldName = metadata.Name;
foreach (var fileProp in fileProps)
{
@@ -297,12 +297,11 @@ namespace LukeHagar.PlexAPI.SDK.Utils
}
else
{
fieldName = fileMetadata.Name ?? fileProp.Name;
fileName = fileProp.GetValue(value)?.ToString() ?? "";
}
}
if (fieldName == "" || fileName == "" || content == null)
if (fileName == "" || content == null)
{
throw new Exception("Invalid multipart/form-data file");
}