From ec389bb59627999822e5ec1acc8d67b2393ffa7f Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Tue, 14 Oct 2025 23:18:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=D1=83=20=D0=B4?= =?UTF-8?q?=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SfeduSchedule/Program.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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