Add image file accept to openapi

This commit is contained in:
crobibero
2021-02-10 16:12:52 -07:00
parent bd8c269ea2
commit d5f0b046bb
5 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
namespace Jellyfin.Api.Attributes
{
/// <summary>
/// Produces file attribute of "image/*".
/// </summary>
public class AcceptsImageFileAttribute : AcceptsFileAttribute
{
private const string ContentType = "image/*";
/// <summary>
/// Initializes a new instance of the <see cref="AcceptsImageFileAttribute"/> class.
/// </summary>
public AcceptsImageFileAttribute()
: base(ContentType)
{
}
}
}