mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
Set openapi schema type to file where possible
This commit is contained in:
18
Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs
Normal file
18
Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Jellyfin.Api.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
/// Produces file attribute of "video/*".
|
||||
/// </summary>
|
||||
public class ProducesVideoFileAttribute : ProducesFileAttribute
|
||||
{
|
||||
private const string ContentType = "video/*";
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProducesVideoFileAttribute"/> class.
|
||||
/// </summary>
|
||||
public ProducesVideoFileAttribute()
|
||||
: base(ContentType)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user