The Free Software Media System - Server Backend & API
Merge pull request #7775 from crobibero/openapi-version
Cody Robiberod078daad39b6
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.csindex 3df8481fd4..66fa3bc31b 100644--- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs+++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs@@ -440,6 +440,12 @@ namespace Jellyfin.Server.Extensions.Cast<IOpenApiAny>().ToArray()});++ // Swashbuckle doesn't use JsonOptions to describe responses, so we need to manually describe it.+ options.MapType<Version>(() => new OpenApiSchema+ {+ Type = "string"+ });}}}