From 1342615e49a0bb931c5696f89aecc09f6b3a9004 Mon Sep 17 00:00:00 2001 From: Havunen Date: Sun, 25 Feb 2024 13:53:59 +0200 Subject: [PATCH] v3.0.8 --- CHANGELOG.md | 6 ++++++ README.md | 12 ++++++------ src/Directory.Build.props | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a47d461dce..085400e257 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v3.0.8 +- Adds support for HttpResults https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2595 +- Fixes an issue where interface chain is not checked for parameters, this resolves issue: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2596 +- Added minimum and maximum constraint for unsigned integers to more accurately declare them in the schema. UInt128 maximum value is left as null because OpenApi maximum field is too small to support it. Changed uint to use int64 format because int32 is too small to represent its upper limit. Fixes https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2582 +- Adds support for Int128 and UInt128 and unify STJ and Newtonsoft Primitive types and formats lookup dictionary to reduce code duplication. Fixes https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2611 + # v3.0.7 - always prefer `modelMetaData.Type` over `parameter.Type` to support Enums. Fixes https://github.com/Havunen/DotSwashbuckle/issues/7 diff --git a/README.md b/README.md index 68c72d05ba..4c36e30f9f 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Change the csproj nuget reference ```patch - -+ ++ ``` Uninstall the swashbuckle CLI tool @@ -43,7 +43,7 @@ dotnet tool uninstall --global Swashbuckle.AspNetCore.Cli Install DotSwashbuckle CLI tool ``` -dotnet tool install --global --version 3.0.7 DotSwashbuckle.AspNetCore.Cli +dotnet tool install --global --version 3.0.8 DotSwashbuckle.AspNetCore.Cli ``` # Benchmark @@ -65,8 +65,8 @@ WarmupCount=2 1. Install the standard Nuget package into your ASP.NET Core application. ``` - Package Manager : Install-Package DotSwashbuckle.AspNetCore -Version 3.0.7 - CLI : dotnet add package --version 3.0.7 DotSwashbuckle.AspNetCore + Package Manager : Install-Package DotSwashbuckle.AspNetCore -Version 3.0.8 + CLI : dotnet add package --version 3.0.8 DotSwashbuckle.AspNetCore ``` 2. In the `ConfigureServices` method of `Startup.cs`, register the Swagger generator, defining one or more Swagger documents. @@ -142,8 +142,8 @@ If you're using **System.Text.Json (STJ)**, then the setup described above will If you're using **Newtonsoft**, then you'll need to install a separate package and explicitly opt-in to ensure that *Newtonsoft* settings/attributes are automatically honored by the Swagger generator: ``` -Package Manager : Install-Package DotSwashbuckle.AspNetCore.Newtonsoft -Version 3.0.7 -CLI : dotnet add package --version 3.0.7 DotSwashbuckle.AspNetCore.Newtonsoft +Package Manager : Install-Package DotSwashbuckle.AspNetCore.Newtonsoft -Version 3.0.8 +CLI : dotnet add package --version 3.0.8 DotSwashbuckle.AspNetCore.Newtonsoft ``` ```csharp diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 7e180c9077..f080df372c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -11,7 +11,7 @@ git https://github.com/Havunen/DotSwashbuckle.git true - 3.0.7 + 3.0.8 12 icon.png