v17 should use swashbuckle 10 #20902
Replies: 9 comments 25 replies
-
|
Hi @bielu Thanks for reaching out with this 💪 It's been on our radar, but we have chosen to forego this for a few reasons. First of all, the v10.0 release of The main reason, however, is that we're investigating a move to Of course, one does not necessarily exclude the other, but... since both bring about breaking changes for anyone generating custom schemas, we don't want to introduce additional breakage in Umbraco 17, if we're going to replace the whole thing and break it all over again in Umbraco 18+. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, To add some extra information - we have already seen two issues raised for this against the uSync repo
But upgrading to v10.* is a big breaking change (to be honest it's a shocking breaking change by Microsoft this one!). The Missing The core base class having this might mitigate the issue, but there is also the fact that they have moved the namespace for the models. so the if this changed before the release it would break all packages that use IOperationFilters or indeed have Custom SwaggerGenOption configure code ? (e.g almost all of them?) |
Beta Was this translation helpful? Give feedback.
-
|
Hi both of you 👋
☝️ This just goes to show that the Umbraco community is the best! 💯 We're going to have to reevaluate matters based on the EOL of the
None of these options are any kind of desirable. As of right now, the latter option is likely the most realistic one. I will get back to you with more information early next week. |
Beta Was this translation helpful? Give feedback.
-
|
Although it can probably not always be avoided, I really REALLY would hate breaking changes in minor versions. That goes against the idea of having major versions. Isn't there a way - if it cant get into the v17 release on time - to solve this non breaking by keeping the old in as obsolete? |
Beta Was this translation helpful? Give feedback.
-
|
Hi everyone. We've been back and forth on this one since Friday, and we've made a decision to upgrade the Swashbuckle dependency for V17.0, in order to avoid a breaking change later in the 17 lifetime. See #20925 The CMS will still generate OpenAPI 3.0.4 schemas as it does today. We are still aiming for a V17.0 release on the 27th, and we're actively reaching out to the authors of most-used packages to raise awareness of this change. Thanks to all here for raising this concern ❤️ Update: Umbraco 17-RC4 is available with this update on the preview feed (MyGet) now 👍 |
Beta Was this translation helpful? Give feedback.
-
|
Just updated to the latest nightly (RC4). For me, this update was super simple - just had to change: using Microsoft.OpenApi.Models;to using Microsoft.OpenApi;In three places 🚀 |
Beta Was this translation helpful? Give feedback.
-
|
I've had to do a lot more effort, but in the end it's nothing serious. Maybe not everything is needed or could be done differently, but this is the summary for me. Hopefully it helps someone :) Migration Guide: Swashbuckle 9 to 10 / Microsoft.OpenApi 1.x to 2.xNamespace Changes
Type Changes
Schema Type Property
Read-Only Properties
Null Handling
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Would a move away from having a built in UI + relying on Swashbuckle in general, and instead just depending on Microsoft.OpenApi directly be something to consider in the future? So you can just align with the Microsoft.OpenApi version as needed in your release cycles, and adding the UI would be something done on a project by project basis. This would also allow developers to use their preferred UI package that aligns with their other services they build and support on a given project (although Swagger UI can still be used and hooked up with MS OpenAPI directly, so shipping a default UI could still be a thing regardless) Between Swashbuckle, Scalar, etc options are a plenty nowadays besides Swagger UI and easy to integrate directly with the MS OpenApi package document generation. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When upgrading my code to v17 i noticed umbraco v17-rc2 is using swashbuckle v 9.0.6, however for .net 10 is better to use v10.
For reference release logs for v10:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/releases/tag/v10.0.0
I recommend using 10.0.1 however with small fixes :)
There is upgrade guide:
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/master/docs/migrating-to-v10.md
There is a lot important changes in v10, like proper support for openapi 3.1. :)
Beta Was this translation helpful? Give feedback.
All reactions