diff --git a/CHANGELOG.md b/CHANGELOG.md index 42529c6..03d917b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,12 @@ These are the changes to each version that has been released on the [nuget](https://www.nuget.org/packages/Unchase.Swashbuckle.AspNetCore.Extensions/). -## v2.3.9 `(2020-07-11)` +## v2.3.10 `(2020-07-29)` + +- [x] Fix [issue #13](https://github.com/unchase/Unchase.Swashbuckle.AspNetCore.Extensions/issues/13) +- [x] Fix [issue #14](https://github.com/unchase/Unchase.Swashbuckle.AspNetCore.Extensions/issues/14) + +## v2.3.9 `(2020-07-28)` - [x] Update nuget dependencies for sample WebAPI - [x] Fix [issue #12](https://github.com/unchase/Unchase.Swashbuckle.AspNetCore.Extensions/issues/12) diff --git a/README.md b/README.md index 07d6f64..3dfca54 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,9 @@ public void ConfigureServices(IServiceCollection services) { options.SwaggerDoc("v1", new OpenApiInfo { Title = "My API", Version = "v1" }); + // use it if you want to hide Paths and Definitions from OpenApi documentation correctly + options.UseAllOfToExtendReferenceSchemas(); + // if you want to add xml comments into the swagger documentation, first of all add: var xmlFilePath = Path.Combine(AppContext.BaseDirectory, "WebApi3.1-Swashbuckle.xml"); options.IncludeXmlComments(xmlFilePath); diff --git a/src/Unchase.Swashbuckle.AspNetCore.Extensions/Extensions/EnumTypeExtensions.cs b/src/Unchase.Swashbuckle.AspNetCore.Extensions/Extensions/EnumTypeExtensions.cs index e9cf98f..ab1a4c2 100644 --- a/src/Unchase.Swashbuckle.AspNetCore.Extensions/Extensions/EnumTypeExtensions.cs +++ b/src/Unchase.Swashbuckle.AspNetCore.Extensions/Extensions/EnumTypeExtensions.cs @@ -102,7 +102,10 @@ private static string TryGetMemberComments(MemberInfo memberInfo, IEnumerable 7.3 https://github.com/unchase/Unchase.Swashbuckle.AspNetCore.Extensions/blob/master/assets/icon.png?raw=true - 2.3.9 - 2.3.9.0 - 2.3.9.0 + 2.3.10 + 2.3.10.0 + 2.3.10.0 false Unchase.Swashbuckle.AspNetCore.Extensions.xml diff --git a/test/WebApi3.1-Swashbuckle/Startup.cs b/test/WebApi3.1-Swashbuckle/Startup.cs index 48d5ac9..74a5a7a 100644 --- a/test/WebApi3.1-Swashbuckle/Startup.cs +++ b/test/WebApi3.1-Swashbuckle/Startup.cs @@ -31,6 +31,9 @@ public void ConfigureServices(IServiceCollection services) { options.SwaggerDoc("v1", new OpenApiInfo { Title = "My API", Version = "v1" }); + // use it if you want to hide Paths and Definitions from OpenApi documentation correctly + options.UseAllOfToExtendReferenceSchemas(); + #region AddEnumsWithValuesFixFilters // if you want to add xml comments into the swagger documentation, first of all add: