mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
Add JsonInto32Converter
Add additional swagger type mapping
This commit is contained in:
@@ -215,6 +215,19 @@ namespace Jellyfin.Server.Extensions
|
||||
Format = "string"
|
||||
})
|
||||
});
|
||||
|
||||
options.MapType<Dictionary<ImageType, Dictionary<string, string>>>(() =>
|
||||
new OpenApiSchema
|
||||
{
|
||||
Type = "object",
|
||||
Properties = typeof(ImageType).GetEnumNames().ToDictionary(
|
||||
name => name,
|
||||
name => new OpenApiSchema
|
||||
{
|
||||
Type = "string",
|
||||
Format = "string"
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user