mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-05 05:13:02 +02:00
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:
commit
cb111eb767
|
@ -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…
Reference in a new issue