Commit 1d06234
Upgrade to .NET 10 with Swashbuckle v10 (dropping .NET 8 support) (#103)
* Initial plan
* Update project files for .NET 10 support and add conditional compilation for Swashbuckle v10
Co-authored-by: MatDumoulin <6119223+MatDumoulin@users.noreply.github.com>
* Fix filter implementations for Swashbuckle v10 compatibility
Co-authored-by: MatDumoulin <6119223+MatDumoulin@users.noreply.github.com>
* Fix test project for .NET 10 compatibility
Co-authored-by: MatDumoulin <6119223+MatDumoulin@users.noreply.github.com>
* Remove .NET 8 support - target only .NET 10
- Changed all projects from multi-targeting (net8.0;net10.0) to single target (net10.0)
- Removed conditional compilation directives (#if NET10_0_OR_GREATER)
- Kept only .NET 10 / Swashbuckle v10 code paths
- Updated all package references to use only .NET 10 versions
- Removed deprecated WithOpenApi() calls (already done for .NET 10)
- Maintained fully qualified type names for Forbidden/InternalServerError to avoid conflicts with framework types
Co-authored-by: MatDumoulin <6119223+MatDumoulin@users.noreply.github.com>
* Use framework's InternalServerError, keep custom Forbidden types
- Removed custom InternalServerError and InternalServerError<T> types (now provided by .NET 10)
- Kept custom Forbidden and Forbidden<T> types (not provided by framework)
- Updated TypedResultsExtensions to only provide Forbidden methods
- Updated HttpResultsStatusCodeTypeHelpers to use framework InternalServerError
- Updated analyzer to reference framework InternalServerError
- Updated tests to use TypedResults.InternalServerError() from framework
- Updated PublicAPI.Unshipped.txt to remove InternalServerError entries
Co-authored-by: MatDumoulin <6119223+MatDumoulin@users.noreply.github.com>
* Finishing to update to .Net 10
* Fixing compilation warnings
* Fix for spec
* wip
* address comments
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: MatDumoulin <6119223+MatDumoulin@users.noreply.github.com>
Co-authored-by: Mathieu Dumoulin <mathieu.dumoulin@workleap.com>
Co-authored-by: Gérald Barré <gerald.barre@gsoft.com>
Co-authored-by: Gérald Barré <gerald.barre@workleap.com>1 parent 8152b9c commit 1d06234
File tree
26 files changed
+139
-284
lines changed- src
- Workleap.Extensions.OpenAPI.Analyzers
- Workleap.Extensions.OpenAPI.Tests
- Workleap.Extensions.OpenAPI
- OperationId
- Ordering
- RequiredType
- TypedResult
- tests
- WebApi.OpenAPI.SystemTest
- ExtractTypeResult
- OperationId
- Ordering
- Workleap.Extensions.OpenAPI.Analyzers.Tests
26 files changed
+139
-284
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 38 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
11 | 25 | | |
12 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
13 | 32 | | |
14 | 33 | | |
15 | 34 | | |
16 | 35 | | |
17 | 36 | | |
18 | 37 | | |
19 | 38 | | |
20 | | - | |
21 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
22 | 48 | | |
23 | 49 | | |
24 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
25 | 56 | | |
26 | 57 | | |
27 | 58 | | |
28 | 59 | | |
29 | 60 | | |
30 | 61 | | |
31 | | - | |
32 | | - | |
| 62 | + | |
| 63 | + | |
33 | 64 | | |
34 | 65 | | |
35 | | - | |
| 66 | + | |
36 | 67 | | |
37 | 68 | | |
38 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 17 | | |
0 commit comments