Merge pull request #7775 from crobibero/openapi-version

This commit is contained in:
Cody Robibero 2022-05-21 08:59:24 -06:00 committed by GitHub
commit 4c0510ee6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -440,6 +440,12 @@ namespace Jellyfin.Server.Extensions
.Cast<IOpenApiAny>() .Cast<IOpenApiAny>()
.ToArray() .ToArray()
}); });
// Swashbuckle doesn't use JsonOptions to describe responses, so we need to manually describe it.
options.MapType<Version>(() => new OpenApiSchema
{
Type = "string"
});
} }
} }
} }