Change swagger dictionary type mapping

This commit is contained in:
David 2020-06-19 15:49:44 +02:00
parent 6651cb8d24
commit 08401f923d
1 changed files with 14 additions and 2 deletions

View File

@ -216,6 +216,9 @@ namespace Jellyfin.Server.Extensions
})
});
/*
* Support BlurHash dictionary
*/
options.MapType<Dictionary<ImageType, Dictionary<string, string>>>(() =>
new OpenApiSchema
{
@ -224,8 +227,17 @@ namespace Jellyfin.Server.Extensions
name => name,
name => new OpenApiSchema
{
Type = "string",
Format = "string"
Type = "object", Properties = new Dictionary<string, OpenApiSchema>
{
{
"string",
new OpenApiSchema
{
Type = "string",
Format = "string"
}
}
}
})
});
}