Merge pull request #5661 from ferferga/openapi-product-version

Return Major.Minor.Build instead of Major.Minor.Build.Revision for OpenAPI
pull/5695/head
Bond-009 3 years ago committed by GitHub
commit cb111eb767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -260,7 +260,7 @@ namespace Jellyfin.Server.Extensions
{
return serviceCollection.AddSwaggerGen(c =>
{
var version = typeof(ApplicationHost).Assembly.GetName().Version?.ToString() ?? "0.0.0.1";
var version = typeof(ApplicationHost).Assembly.GetName().Version?.ToString(3) ?? "0.0.1";
c.SwaggerDoc("api-docs", new OpenApiInfo
{
Title = "Jellyfin API",

Loading…
Cancel
Save