diff options
| author | crobibero <cody@robibe.ro> | 2020-09-01 17:26:49 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-01 17:26:49 -0600 |
| commit | 2f33bee2a94f7175050f83d568f8bd65a01a86f8 (patch) | |
| tree | 69ca62c6fa2291de284a28da59c35b6f2baa45ac /Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs | |
| parent | 2d198292a3ff1a5d213c9dd4643eee6ddef2661e (diff) | |
Set openapi schema type to file where possible
Diffstat (limited to 'Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs')
| -rw-r--r-- | Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs b/Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs new file mode 100644 index 000000000..d8b2856dc --- /dev/null +++ b/Jellyfin.Api/Attributes/ProducesVideoFileAttribute.cs @@ -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) + { + } + } +} |
