forked from loafle/openapi-generator-original
Fix incorrect FileParameter deserialization in csharp-netcore (#11850)
This commit is contained in:
@@ -100,6 +100,10 @@ namespace Org.OpenAPITools.Client
|
||||
{
|
||||
return await response.Content.ReadAsByteArrayAsync();
|
||||
}
|
||||
else if (type == typeof(FileParameter))
|
||||
{
|
||||
return new FileParameter(await response.Content.ReadAsStreamAsync());
|
||||
}
|
||||
|
||||
// TODO: ? if (type.IsAssignableFrom(typeof(Stream)))
|
||||
if (type == typeof(Stream))
|
||||
|
||||
Reference in New Issue
Block a user