Add JsonInto32Converter

Add additional swagger type mapping
This commit is contained in:
David
2020-06-19 12:24:39 +02:00
parent 77bea56708
commit 6651cb8d24
3 changed files with 27 additions and 26 deletions

View File

@@ -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"
})
});
}
}
}