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

Return Major.Minor.Build instead of Major.Minor.Build.Revision for OpenAPI
This commit is contained in:
Bond-009 2021-04-03 22:07:47 +02:00 committed by GitHub
commit cb111eb767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",