Skip to content

Add warning for ASP.NET Core version < 10.0 #2451

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

Merged
merged 2 commits into from
Jul 25, 2025
Merged

Conversation

Frulfump
Copy link
Contributor

@Frulfump Frulfump commented Jul 23, 2025

Contributes to #2442

  • Fixes title of document, was Upgrade guide to OpenAPI.NET 2.1 before
  • Fixes MD059 helpful link text
  • Remove trailing and unnecessary white space
  • Typo correction of British English behaviour to American English behavior
  • Fix basic markdown lint issues

Ideally there should be some type of markdown lint that runs on CI and a typo checker (added benefit would avoid typo squatting issues as seen in AzureAD/microsoft-authentication-library-for-dotnet#5278)

I get a markdownlint warning MD025/single-title/single-h1: Multiple top-level headings in the same document for the # Introduction header since front matter is being used but I left it as is.

- Remove trailing and unnecessary white space
- Typo correction of British English `behaviour` to American English `behavior`
- Fix basic markdown lint issues
@Frulfump Frulfump requested a review from a team as a code owner July 23, 2025 17:57
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!

@baywet baywet enabled auto-merge (squash) July 23, 2025 18:13
@Frulfump
Copy link
Contributor Author

@microsoft-github-policy-service agree

@Frulfump
Copy link
Contributor Author

Frulfump commented Jul 23, 2025

@baywet @adrian05-ms I think the license/cla check is stuck, the bot never swooped in either.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

https://github.com/microsoft/OpenAPI.NET?tab=readme-ov-file#contributing

I just yoloed the agree to see if something would happen...
(saw that comment in another PR)

@baywet
Copy link
Member

baywet commented Jul 25, 2025

@microsoft-github-policy-service rerun

@baywet baywet merged commit 1994320 into microsoft:main Jul 25, 2025
9 checks passed
@Frulfump Frulfump deleted the patch-1 branch July 25, 2025 12:06
OpenAPI.NET v2 is a major update to the OpenAPI.NET library. This release includes a number of performance improvements, API enhancements, and support for OpenAPI v3.1.

> [!WARNING]
> If you are using this library with ASP.NET Core version `< 10.0` then you must remain on version `1.x` as it's not compatible.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn’t strictly true. It’s not compatible with the Microsoft.AspNetCore.OpenApi library, which depends on Microsoft.OpenApi v1.

If your application doesn’t use that (either directly, or transitively via a dependency such as Swashbuckle.AspNetCore), then you can use v2 with ASP.NET Core 8 and 9.

Copy link
Contributor Author

@Frulfump Frulfump Aug 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martincostello Oh I thought there was some (non-absorbable)breaking changes affecting < ASP.NET Core 10 based on the maintainers conversation in the linked issue. Thanks I'll prepare a new PR!

(I was actually thinking about pinging you in the issue but didn't want to disturb you 😅)

Copy link
Contributor

@martincostello martincostello Aug 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's useable, it's just potentially lot of work due to the breaking changes, but other than where you depend on other dependencies using v1, it can be used. For example for Swashbuckle users, it definitely is breaking and not possible to use until we ship our release that supports v2 in November.

I'd just make the warning not so absolute in its wording.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah that makes sense, I agree. Could you prepare the PR instead I'm on a cellular connection and it's not very stable.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's see how the discussion in the issue you tagged me on pans out first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants