mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #15996] Swagger: load xml comments from plugins #14489
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/15996
Author: @jon4hz
Created: 1/11/2026
Status: 🔄 Open
Base:
master← Head:feat-plugin-swagger-docs📝 Commits (1)
330fd32Swagger: load xml comments from plugins📊 Changes
2 files changed (+25 additions, -3 deletions)
View changed files
📝
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs(+22 -1)📝
Jellyfin.Server/Startup.cs(+3 -2)📄 Description
Changes
This PR allows plugins to include xml comments from custom rest endpoints in the swagger docs.
With the comments included, you can then test your plugin's endpoints on the swagger page and also generate openapi client implementations for the plugin.
For this to work, the plugin must enable docs generation in the
.csprojfile:The resulting
My.Plugin.Name.xmlfile must also be included in the release zip of the plugin.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.