From 904dec1c74cbdbebbf4b7f8144161dc97cc712c3 Mon Sep 17 00:00:00 2001 From: zenghongyao <873884283@qq.com> Date: Fri, 20 Jun 2025 11:16:46 +0800 Subject: [PATCH] =?UTF-8?q?swagger=E6=96=87=E6=A1=A3=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3=EF=BC=8C=E4=BD=BF=E7=94=A8xml=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- host/JiShe.IoT.HttpApi.Host/IoTHttpApiHostModule.Configure.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/JiShe.IoT.HttpApi.Host/IoTHttpApiHostModule.Configure.cs b/host/JiShe.IoT.HttpApi.Host/IoTHttpApiHostModule.Configure.cs index 11880f2..5e47abb 100644 --- a/host/JiShe.IoT.HttpApi.Host/IoTHttpApiHostModule.Configure.cs +++ b/host/JiShe.IoT.HttpApi.Host/IoTHttpApiHostModule.Configure.cs @@ -174,7 +174,7 @@ public partial class IoTHttpApiHostModule return description.GroupName == docName; }); - options.EnableAnnotations(enableAnnotationsForInheritance: true, enableAnnotationsForPolymorphism: true); // 启用注解 + //options.EnableAnnotations(enableAnnotationsForInheritance: true, enableAnnotationsForPolymorphism: true); // 启用注解 options.DocumentFilter(); options.SchemaFilter(); // 加载所有xml注释,这里会导致swagger加载有点缓慢