diff --git a/SfeduSchedule/Program.cs b/SfeduSchedule/Program.cs index 1b5b339..a976ae2 100644 --- a/SfeduSchedule/Program.cs +++ b/SfeduSchedule/Program.cs @@ -108,6 +108,14 @@ builder.Services.AddSwaggerGen(options => var pluginXmlFile = "SfeduSchedule.Abstractions.xml"; var pluginXmlPath = Path.Combine(AppContext.BaseDirectory, pluginXmlFile); options.IncludeXmlComments(pluginXmlPath); + + // Добавление документации плагинов + foreach (var p in loadedPlugins) + { + var pluginXmlFullPath = p.Assembly.Location.Replace("dll", "xml"); + if (File.Exists(pluginXmlFullPath)) + options.IncludeXmlComments(pluginXmlFullPath); + } // Добавляем только схему авторизации по ApiKey options.AddSecurityDefinition(ApiKeyAuthenticationDefaults.Scheme, new Microsoft.OpenApi.Models.OpenApiSecurityScheme