mirror of https://github.com/jellyfin/jellyfin.git
Merge pull request #7775 from crobibero/openapi-version
(cherry picked from commit 4c0510ee6d
)
Signed-off-by: crobibero <cody@robibe.ro>
This commit is contained in:
parent
f205661b18
commit
d078daad39
|
@ -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"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue