diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-02-26 19:31:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-26 19:31:02 +0100 |
| commit | c11c33e1a8facc612d8d37b1e6d79e8f20edc238 (patch) | |
| tree | 3126a7df13d8baa5a18267bc0213555c15c23a79 /Jellyfin.Server/Filters/FileRequestFilter.cs | |
| parent | e8232d31ab5367de015a85e4c52f18e1b883297d (diff) | |
| parent | 94dcaf2ea24e428f2957674ac46b864625782194 (diff) | |
Merge pull request #16256 from Shadowghost/upgrade-swashbuckle
Upgrade Swashbuckle to v10
Diffstat (limited to 'Jellyfin.Server/Filters/FileRequestFilter.cs')
| -rw-r--r-- | Jellyfin.Server/Filters/FileRequestFilter.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Server/Filters/FileRequestFilter.cs b/Jellyfin.Server/Filters/FileRequestFilter.cs index 86dbf7657e..3d5b1fdf1f 100644 --- a/Jellyfin.Server/Filters/FileRequestFilter.cs +++ b/Jellyfin.Server/Filters/FileRequestFilter.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; using Jellyfin.Api.Attributes; -using Microsoft.OpenApi.Models; +using Microsoft.OpenApi; using Swashbuckle.AspNetCore.SwaggerGen; namespace Jellyfin.Server.Filters @@ -28,10 +28,11 @@ namespace Jellyfin.Server.Filters { Schema = new OpenApiSchema { - Type = "string", + Type = JsonSchemaType.String, Format = "binary" } }; + body.Content ??= new System.Collections.Generic.Dictionary<string, OpenApiMediaType>(); foreach (var contentType in contentTypes) { body.Content.Add(contentType, mediaType); |
