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/ProducesAudioFileAttribute.cs
Normal file
18
Jellyfin.Api/Attributes/ProducesAudioFileAttribute.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Jellyfin.Api.Attributes
|
||||
{
|
||||
/// <summary>
|
||||
/// Produces file attribute of "image/*".
|
||||
/// </summary>
|
||||
public class ProducesAudioFileAttribute : ProducesFileAttribute
|
||||
{
|
||||
private const string ContentType = "audio/*";
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProducesAudioFileAttribute"/> class.
|
||||
/// </summary>
|
||||
public ProducesAudioFileAttribute()
|
||||
: base(ContentType)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user