Skip to content

Commit

Permalink
v3.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Feb 18, 2024
1 parent 684a6ff commit 0216632
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v3.0.3
- Adds support for System.Text.Json.RequiredAttribute
- Fixes an issue where referencing same schema multiple times causes runtime error. https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2679 Instead changed the runtime to throw error if same id path is used for different schemas. for https://github.com/Havunen/DotSwashbuckle/issues/3

# v3.0.2
- Fixes an issue where nullable is not defined for primitive response type schema https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2731
- Fixes an issue where nested record types nullable does not get generated correctly https://github.com/Havunen/DotSwashbuckle/commit/ab7e8e681888034fa9157565eaf45ec18703849b
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Change the csproj nuget reference

```patch
-<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
+<PackageReference Include="DotSwashbuckle.AspNetCore" Version="3.0.1" />
+<PackageReference Include="DotSwashbuckle.AspNetCore" Version="3.0.3" />
```

Uninstall the swashbuckle CLI tool
Expand All @@ -43,7 +43,7 @@ dotnet tool uninstall --global Swashbuckle.AspNetCore.Cli
Install DotSwashbuckle CLI tool

```
dotnet tool install --global --version 3.0.1 DotSwashbuckle.AspNetCore.Cli
dotnet tool install --global --version 3.0.3 DotSwashbuckle.AspNetCore.Cli
```

# Benchmark
Expand All @@ -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.1
CLI : dotnet add package --version 3.0.1 DotSwashbuckle.AspNetCore
Package Manager : Install-Package DotSwashbuckle.AspNetCore -Version 3.0.3
CLI : dotnet add package --version 3.0.3 DotSwashbuckle.AspNetCore
```

2. In the `ConfigureServices` method of `Startup.cs`, register the Swagger generator, defining one or more Swagger documents.
Expand Down Expand Up @@ -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.1
CLI : dotnet add package --version 3.0.1 DotSwashbuckle.AspNetCore.Newtonsoft
Package Manager : Install-Package DotSwashbuckle.AspNetCore.Newtonsoft -Version 3.0.3
CLI : dotnet add package --version 3.0.3 DotSwashbuckle.AspNetCore.Newtonsoft
```

```csharp
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Havunen/DotSwashbuckle.git</RepositoryUrl>
<ContinuousIntegrationBuild Condition="'$(APPVEYOR)' == 'True'">true</ContinuousIntegrationBuild>
<VersionPrefix>3.0.2</VersionPrefix>
<VersionPrefix>3.0.3</VersionPrefix>
<LangVersion>12</LangVersion>
<PackageIcon>icon.png</PackageIcon>
</PropertyGroup>
Expand Down

0 comments on commit 0216632

Please sign in to comment.