mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Change swagger dictionary type mapping
This commit is contained in:
parent
6651cb8d24
commit
08401f923d
@ -216,6 +216,9 @@ namespace Jellyfin.Server.Extensions
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Support BlurHash dictionary
|
||||||
|
*/
|
||||||
options.MapType<Dictionary<ImageType, Dictionary<string, string>>>(() =>
|
options.MapType<Dictionary<ImageType, Dictionary<string, string>>>(() =>
|
||||||
new OpenApiSchema
|
new OpenApiSchema
|
||||||
{
|
{
|
||||||
@ -224,8 +227,17 @@ namespace Jellyfin.Server.Extensions
|
|||||||
name => name,
|
name => name,
|
||||||
name => new OpenApiSchema
|
name => new OpenApiSchema
|
||||||
{
|
{
|
||||||
Type = "string",
|
Type = "object", Properties = new Dictionary<string, OpenApiSchema>
|
||||||
Format = "string"
|
{
|
||||||
|
{
|
||||||
|
"string",
|
||||||
|
new OpenApiSchema
|
||||||
|
{
|
||||||
|
Type = "string",
|
||||||
|
Format = "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user