chore: Bump Microsoft.OpenApi from 2.9.0 to 3.8.0 - #380
Conversation
--- updated-dependencies: - dependency-name: Microsoft.OpenApi dependency-version: 3.8.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
|
Superseded by #391. The 3.x bump can't compile — |
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
## Summary Resolves the recurring red Dependabot PR #380 (`Microsoft.OpenApi` 2.9.0 → 3.8.0) and, in the same pass, advances the direct security pin to the latest patched 2.x. `Microsoft.OpenApi` is a **direct security pin** (see `src/ExpertiseApi/ExpertiseApi.csproj`), held forward within the 2.x major so the app resolves off the patched line rather than the vulnerable 2.0.0 that `Microsoft.AspNetCore.OpenApi` pulls transitively. ## Why 3.x cannot land (yet) `Microsoft.OpenApi` **3.x** made `IOpenApiMediaType.Example` read-only, but the `Microsoft.AspNetCore.OpenApi` **10.0.9** XML-comment source generator still *assigns* to it, so a 3.x bump fails to compile: ``` OpenApiXmlCommentSupport.generated.cs(399,41): error CS0200: Property or indexer 'IOpenApiMediaType.Example' cannot be assigned to -- it is read only ``` `Microsoft.AspNetCore.OpenApi` 10.0.9 (our current version, the latest stable) depends on `Microsoft.OpenApi (>= 2.0.0)` and does **not** require 3.x — so there is no lockstep forward path today. Full diagnosis in #390. ## Changes 1. **`ExpertiseApi.csproj`** — pin `Microsoft.OpenApi` **2.9.0 → 2.10.0** (current patched 2.x head, 2026-07-06). Comment extended to record why the 2.x major is held. 2. **`.github/dependabot.yml`** — `ignore` `Microsoft.OpenApi` `version-update:semver-major` only. The recurring un-buildable 3.x PR stops; **2.x minor/patch security bumps still flow.** ## Verification - `dotnet build -c Release` → **0 warnings, 0 errors**; OpenAPI document generates cleanly. - CI runs Build & Test + the OpenAPI breaking-change gate. ## Follow-up - Closes the #380 churn (that PR is closed in favour of this one). - #390 stays open as the standing "revisit 3.x once `Microsoft.AspNetCore.OpenApi`'s generator supports the 3.x example model" tracker. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Updated Microsoft.OpenApi from 2.9.0 to 3.8.0.
Release notes
Sourced from Microsoft.OpenApi's releases.
3.8.0
3.8.0 (2026-07-03)
Features
Bug Fixes
3.7.0
3.7.0 (2026-06-10)
Features
Bug Fixes
3.6.0
3.6.0 (2026-06-01)
Features
3.5.5
3.5.5 (2026-05-28)
Bug Fixes
3.5.4
3.5.4 (2026-05-26)
Bug Fixes
3.5.3
3.5.3 (2026-04-27)
Bug Fixes
Performance Improvements
3.5.2
3.5.2 (2026-04-14)
Bug Fixes
3.5.1
3.5.1 (2026-03-31)
Bug Fixes
3.5.0
3.5.0 (2026-03-20)
Features
Bug Fixes
3.4.0
3.4.0 (2026-03-04)
Features
Bug Fixes
3.3.1
3.3.1 (2026-01-22)
Features
Bug Fixes
3.3.0
3.3.0 (2026-01-21)
Features
3.2.0
3.2.0 (2026-01-19)
Features
Bug Fixes
3.1.3
3.1.3 (2026-01-16)
Bug Fixes
3.1.2
3.1.2 (2026-01-06)
Bug Fixes
3.1.1
3.1.1 (2025-12-18)
Bug Fixes
additionalProperties: false(6651c36)additionalProperties: false(e36fc95)3.1.0
3.1.0 (2025-12-17)
Features
type: "null"downcasting when in oneOf and anyOf for OpenAPI v3 (782cf8d)3.0.3
3.0.3 (2025-12-16)
Bug Fixes
3.0.2
3.0.2 (2025-12-08)
Bug Fixes
3.0.1
3.0.1 (2025-11-17)
Bug Fixes
3.0.0
3.0.0 (2025-11-11)
⚠ BREAKING CHANGES
Features
Special thanks
2.10.0
2.10.0 (2026-07-03)
Features
Bug Fixes
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)