-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update to .NET 10 preview 4 and Microsoft.OpenApi 2.0.0-preview.17 #3386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dotnet-vnext
Are you sure you want to change the base?
Conversation
❌ 12 Tests Failed:
View the top 3 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
It's a pain that we lost all sorting. Related conversation: microsoft/OpenAPI.NET#1314 (comment). |
Yeah - I was going to look tomorrow at having the code sort the lists before returning the document to the caller. It's not ideal, but it's a partial solution until/unless they revert the changes to use specific concrete types. Subclassing |
I wonder why they changed all signatures from I quickly hacked together something here to unblock me and see what else breaks. But to do the sorting properly, it needs to be done recursively, such as here. Hope that helps. |
Yeah, a recursive approach was what I was going to do. I have benchmarks in a consuming repository, so I can see the effect (albeit very localised on a small API surface) after the changes to see how bad it is. |
Cherry-pick changes from #3386 to prepare for ASP.NET Core 10 preview 4 and Microsoft.OpenApi 2.0.0-preview.17.
Cherry-pick changes from #3386 to prepare for ASP.NET Core 10 preview 4 and Microsoft.OpenApi 2.0.0-preview.17.
Update Microsoft.OpenApi to version 2.0.0-preview.17 using the latest daily build of ASP.NET Core 10 preview 4.
5596c2e
to
fdd66a5
Compare
Update API baselines for change from `OperationType` to `HttpMethod `.
.NET 8 and 9 TestFirst integration tests are failing, so skip for now.
Not sure why the build is failing, but (disregarding the fact it's using a daily build) this should be "done" for supporting Microsoft.OpenApi 2.0.0-preview.17. |
Use the new `SerializeAs()` method to resolve TODOs.
src/Swashbuckle.AspNetCore.SwaggerGen/DependencyInjection/DocumentProvider.cs
Outdated
Show resolved
Hide resolved
I suspect that 04b52e9#r156107432 got lost in the conversation. The actual issue has been resolved, but the concern about copying remains. @martincostello do you have an opinion here? |
Update Microsoft.OpenApi to version 2.0.0-preview.17 using the latest daily build of ASP.NET Core 10 preview 4.
This PR is mainly to get a head-start on adapting to the breaking changes between
2.0.0-preview.11
and2.0.0-preview.17
of Microsoft.OpenApi.