From 9b27cf45d2400b5431f9527ae0d7ce1f08497939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BE=E5=B0=8F=E5=83=A7?= Date: Sat, 7 Sep 2024 18:24:03 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=8A=20=E4=BF=AE=E5=A4=8D=E5=90=AF?= =?UTF-8?q?=E7=94=A8=20`Swashbuckle.AspNetCore.Annotations`=20=E6=8B=93?= =?UTF-8?q?=E5=B1=95=E5=8C=85=E5=90=8E=E6=A0=87=E7=AD=BE=E6=97=A0=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Builders/SpecificationDocumentBuilder.cs | 6 +++--- .../Builders/SpecificationDocumentBuilder.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/framework/Furion.Pure/SpecificationDocument/Builders/SpecificationDocumentBuilder.cs b/framework/Furion.Pure/SpecificationDocument/Builders/SpecificationDocumentBuilder.cs index acf26716e6..1000514ae1 100644 --- a/framework/Furion.Pure/SpecificationDocument/Builders/SpecificationDocumentBuilder.cs +++ b/framework/Furion.Pure/SpecificationDocument/Builders/SpecificationDocumentBuilder.cs @@ -297,14 +297,14 @@ internal static void BuildGen(SwaggerGenOptions swaggerGenOptions, Action(); - // 支持控制器排序操作 - if (_specificationDocumentSettings.EnableTagsOrderDocumentFilter == true) swaggerGenOptions.DocumentFilter(); - // 添加 Action 操作过滤器 swaggerGenOptions.OperationFilter(); // 自定义配置 configure?.Invoke(swaggerGenOptions); + + // 支持控制器排序操作 + if (_specificationDocumentSettings.EnableTagsOrderDocumentFilter == true) swaggerGenOptions.DocumentFilter(); } /// diff --git a/framework/Furion/SpecificationDocument/Builders/SpecificationDocumentBuilder.cs b/framework/Furion/SpecificationDocument/Builders/SpecificationDocumentBuilder.cs index acf26716e6..1000514ae1 100644 --- a/framework/Furion/SpecificationDocument/Builders/SpecificationDocumentBuilder.cs +++ b/framework/Furion/SpecificationDocument/Builders/SpecificationDocumentBuilder.cs @@ -297,14 +297,14 @@ internal static void BuildGen(SwaggerGenOptions swaggerGenOptions, Action(); - // 支持控制器排序操作 - if (_specificationDocumentSettings.EnableTagsOrderDocumentFilter == true) swaggerGenOptions.DocumentFilter(); - // 添加 Action 操作过滤器 swaggerGenOptions.OperationFilter(); // 自定义配置 configure?.Invoke(swaggerGenOptions); + + // 支持控制器排序操作 + if (_specificationDocumentSettings.EnableTagsOrderDocumentFilter == true) swaggerGenOptions.DocumentFilter(); } ///