From dc2f149c8618500fd88b3e91b03a72586868d619 Mon Sep 17 00:00:00 2001 From: gongxh Date: Mon, 8 Nov 2021 14:04:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.WebAPi/App_Start/SwaggerConfig.cs | 4 ++-- NX.ERP.WebAPi/NX.ERP.WebAPi.csproj | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs index 7527440..756de52 100644 --- a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs +++ b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs @@ -107,7 +107,7 @@ namespace NX.ERP.WebAPi // those comments into the generated docs and UI. You can enable this by providing the path to one or // more Xml comment files. // - // c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); + c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); // c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.Model.xml", System.AppDomain.CurrentDomain.BaseDirectory)); // Swashbuckle makes a best attempt at generating Swagger compliant JSON schemas for the various types @@ -150,7 +150,7 @@ namespace NX.ERP.WebAPi // enum type. Swashbuckle will honor this change out-of-the-box. However, if you use a different // approach to serialize enums as strings, you can also force Swashbuckle to describe them as strings. // - //c.DescribeAllEnumsAsStrings(); + c.DescribeAllEnumsAsStrings(); // Similar to Schema filters, Swashbuckle also supports Operation and Document filters: // diff --git a/NX.ERP.WebAPi/NX.ERP.WebAPi.csproj b/NX.ERP.WebAPi/NX.ERP.WebAPi.csproj index c1c6ceb..ed5a4fe 100644 --- a/NX.ERP.WebAPi/NX.ERP.WebAPi.csproj +++ b/NX.ERP.WebAPi/NX.ERP.WebAPi.csproj @@ -37,8 +37,7 @@ 4 AnyCPU false - - + bin\NX.ERP.WebAPi.xml true