diff --git a/.github/workflows/github_build_and_publish.yml b/.github/workflows/github_build_and_publish.yml index 1651924..3da252a 100644 --- a/.github/workflows/github_build_and_publish.yml +++ b/.github/workflows/github_build_and_publish.yml @@ -11,11 +11,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + - uses: actions/checkout@v3 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.100 + dotnet-version: | + 8.0.x + 9.0.x - name: Build env: UPLOAD_NUGET: ${{ secrets.UPLOAD_NUGET }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 44212a3..62cd994 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# Changes in 6.1.0 +- Added support for .NET 8 and .NET 9 to MicroElements.Swashbuckle.FluentValidation.AspNetCore +- Dropped support for .NET 6.0 +- Updated NJsonSchema to version 10.6.10 + # Changes in 6.0.0 - see changelog for betas diff --git a/MicroElements.Swashbuckle.FluentValidation.sln b/MicroElements.Swashbuckle.FluentValidation.sln index 1ea1892..a627e33 100644 --- a/MicroElements.Swashbuckle.FluentValidation.sln +++ b/MicroElements.Swashbuckle.FluentValidation.sln @@ -32,6 +32,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{9ED7 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MinimalApi", "samples\MinimalApi\MinimalApi.csproj", "{6F4B88CA-B550-4C5E-981A-4608EC254976}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MicroElements.Swashbuckle.FluentValidation.AspNetCore", "src\MicroElements.Swashbuckle.FluentValidation.AspNetCore\MicroElements.Swashbuckle.FluentValidation.AspNetCore.csproj", "{C80E2EF6-6408-4BF3-8245-9F9DD1FD8F50}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -66,6 +68,10 @@ Global {6F4B88CA-B550-4C5E-981A-4608EC254976}.Debug|Any CPU.Build.0 = Debug|Any CPU {6F4B88CA-B550-4C5E-981A-4608EC254976}.Release|Any CPU.ActiveCfg = Release|Any CPU {6F4B88CA-B550-4C5E-981A-4608EC254976}.Release|Any CPU.Build.0 = Release|Any CPU + {C80E2EF6-6408-4BF3-8245-9F9DD1FD8F50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C80E2EF6-6408-4BF3-8245-9F9DD1FD8F50}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C80E2EF6-6408-4BF3-8245-9F9DD1FD8F50}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C80E2EF6-6408-4BF3-8245-9F9DD1FD8F50}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/samples/MinimalApi/MinimalApi.csproj b/samples/MinimalApi/MinimalApi.csproj index e93c0c8..fa11ff0 100644 --- a/samples/MinimalApi/MinimalApi.csproj +++ b/samples/MinimalApi/MinimalApi.csproj @@ -1,7 +1,7 @@ - net7.0 + net9.0 enable enable diff --git a/samples/SampleNSwagWebApi/SampleNSwagWebApi.csproj b/samples/SampleNSwagWebApi/SampleNSwagWebApi.csproj index ae0e838..e9eca62 100644 --- a/samples/SampleNSwagWebApi/SampleNSwagWebApi.csproj +++ b/samples/SampleNSwagWebApi/SampleNSwagWebApi.csproj @@ -1,17 +1,17 @@ - net6.0 + net9.0 enable 9 - - + + - - + + diff --git a/samples/SampleWebApi/SampleWebApi.csproj b/samples/SampleWebApi/SampleWebApi.csproj index 4e65d7e..5660591 100644 --- a/samples/SampleWebApi/SampleWebApi.csproj +++ b/samples/SampleWebApi/SampleWebApi.csproj @@ -1,21 +1,21 @@  - net6.0 + net9.0 enable - 9 + latest - + - - - - - - + + + + + + diff --git a/src/MicroElements.NSwag.FluentValidation/MicroElements.NSwag.FluentValidation.csproj b/src/MicroElements.NSwag.FluentValidation/MicroElements.NSwag.FluentValidation.csproj index cabe17d..a43100e 100644 --- a/src/MicroElements.NSwag.FluentValidation/MicroElements.NSwag.FluentValidation.csproj +++ b/src/MicroElements.NSwag.FluentValidation/MicroElements.NSwag.FluentValidation.csproj @@ -1,20 +1,20 @@ - - - + netstandard2.0 enable - 9.0 + latest true false Adds FluentValidation rules to swagger schema. Swagger NSwag OpenApi FluentValidation + + - + diff --git a/src/MicroElements.OpenApi.FluentValidation/MicroElements.OpenApi.FluentValidation.csproj b/src/MicroElements.OpenApi.FluentValidation/MicroElements.OpenApi.FluentValidation.csproj index a165524..15a40e4 100644 --- a/src/MicroElements.OpenApi.FluentValidation/MicroElements.OpenApi.FluentValidation.csproj +++ b/src/MicroElements.OpenApi.FluentValidation/MicroElements.OpenApi.FluentValidation.csproj @@ -1,20 +1,20 @@ - - - + netstandard2.0 enable - 9.0 + latest true MicroElements.OpenApi + + - + - + diff --git a/src/MicroElements.Swashbuckle.FluentValidation.AspNetCore/MicroElements.Swashbuckle.FluentValidation.AspNetCore.csproj b/src/MicroElements.Swashbuckle.FluentValidation.AspNetCore/MicroElements.Swashbuckle.FluentValidation.AspNetCore.csproj index aa797d6..1b86d3d 100644 --- a/src/MicroElements.Swashbuckle.FluentValidation.AspNetCore/MicroElements.Swashbuckle.FluentValidation.AspNetCore.csproj +++ b/src/MicroElements.Swashbuckle.FluentValidation.AspNetCore/MicroElements.Swashbuckle.FluentValidation.AspNetCore.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0;net9.0 enable enable diff --git a/src/MicroElements.Swashbuckle.FluentValidation/MicroElements.Swashbuckle.FluentValidation.csproj b/src/MicroElements.Swashbuckle.FluentValidation/MicroElements.Swashbuckle.FluentValidation.csproj index 7edc72e..96f265b 100644 --- a/src/MicroElements.Swashbuckle.FluentValidation/MicroElements.Swashbuckle.FluentValidation.csproj +++ b/src/MicroElements.Swashbuckle.FluentValidation/MicroElements.Swashbuckle.FluentValidation.csproj @@ -1,21 +1,21 @@  - - - + netstandard2.0 enable - 9.0 + latest true false Swagger ISchemaFilter that uses FluentValidation validators instead System.ComponentModel based attributes. swagger swashbuckle FluentValidation aspnetcore + + - + diff --git a/src/common.props b/src/common.props index a04d0ea..1398973 100644 --- a/src/common.props +++ b/src/common.props @@ -3,7 +3,7 @@ MicroElements - Alexey Petryashev 2023 + Alexey Petryashev 2024 alexey.petriashev;MicroElements https://raw.githubusercontent.com/micro-elements/MicroElements/master/image/logo_rounded.png https://github.com/micro-elements/MicroElements.Swashbuckle.FluentValidation diff --git a/test/MicroElements.Swashbuckle.FluentValidation.Tests/IFormFileTests.cs b/test/MicroElements.Swashbuckle.FluentValidation.Tests/IFormFileTests.cs index b4eed47..05957b2 100644 --- a/test/MicroElements.Swashbuckle.FluentValidation.Tests/IFormFileTests.cs +++ b/test/MicroElements.Swashbuckle.FluentValidation.Tests/IFormFileTests.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using FluentAssertions; +using FluentAssertions; using FluentValidation; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; diff --git a/test/MicroElements.Swashbuckle.FluentValidation.Tests/Issue94.cs b/test/MicroElements.Swashbuckle.FluentValidation.Tests/Issue94.cs index df15bf3..f2bc6e2 100644 --- a/test/MicroElements.Swashbuckle.FluentValidation.Tests/Issue94.cs +++ b/test/MicroElements.Swashbuckle.FluentValidation.Tests/Issue94.cs @@ -2,7 +2,6 @@ using System.Linq; using FluentAssertions; using FluentValidation; -using JetBrains.Annotations; using Swashbuckle.AspNetCore.SwaggerGen; using Xunit; diff --git a/test/MicroElements.Swashbuckle.FluentValidation.Tests/MicroElements.Swashbuckle.FluentValidation.Tests.csproj b/test/MicroElements.Swashbuckle.FluentValidation.Tests/MicroElements.Swashbuckle.FluentValidation.Tests.csproj index 98d1b81..dca1dfa 100644 --- a/test/MicroElements.Swashbuckle.FluentValidation.Tests/MicroElements.Swashbuckle.FluentValidation.Tests.csproj +++ b/test/MicroElements.Swashbuckle.FluentValidation.Tests/MicroElements.Swashbuckle.FluentValidation.Tests.csproj @@ -1,17 +1,17 @@  - net6.0 + net9.0 enable false - - - - - + + + + + diff --git a/version.props b/version.props index 16463d0..395e7fb 100644 --- a/version.props +++ b/version.props @@ -1,6 +1,6 @@ - 6.0.0 + 6.1.0