Skip to content

Transitive Dependency Conflict with Microsoft.OpenApi in 2.16.0 #1508

Closed

Description

@tbright92

Describe the bug

Upon updating from 2.15.0 to 2.16.0, our build begins to fail due to a version conflict. Your dependency update of RamlToOpenApiConverter.SourceOnly 0.21.0 to RamlToOpenApiConverter 0.40.0 also brought in a transitive dependency for Microsoft.OpenApi (version 3.10.2 via RamlToOpenApiConverter 0.30.0).

Unfortunately, we use Microsoft.AspNetCore.OpenApi 10.x, which explicitly depends on Microsoft.OpenApi 2.x, and support for Microsoft.OpenApi 3.x won't be available until .NET 11 is released. Your dependency change from the SourceOnly project to the full project is a breaking change for (presumably) anyone using Microsoft.AspNetCore.OpenApi.

error NU1107: Version conflict detected for Microsoft.OpenApi. Install/reference Microsoft.OpenApi 3.10.2 directly to project {Project} to resolve this issue.

{Project} -> WireMock.Net 2.16.0 -> WireMock.Net.Minimal 2.16.0 -> WireMock.Net.OpenApiParser 2.16.0 -> RamlToOpenApiConverter 0.40.0 -> Microsoft.OpenApi.YamlReader 3.10.2 -> Microsoft.OpenApi (>= 3.10.2)

Expected behavior:

A minor version update shouldn't result in breaking changes due to transitive dependencies.

Test to reproduce

  • 1 Use Microsoft.AspNetCore.OpenApi 10.x or below, update WireMock.Net from 2.15.0 to 2.16.0, breaking changes should occur when building.

Other related info

Provide additional information if any.

Activity

  1. added
    bug
    on Sep 21, 2026
  2. self-assigned this
    on Sep 21, 2026
  3. StefH commented on Sep 21, 2026

    @StefH
    Collaborator
  4. StefH commented on Sep 21, 2026

    @StefH
    Collaborator
  5. StefH commented on Sep 21, 2026

    @StefH
    Collaborator

    @tbright92
    New version will be released soon.

  6. tbright92 commented on Sep 21, 2026

    @tbright92
    Author

    Thanks, @StefH! I truly appreciate the quick response and resolution. 😄

  7. tbright92 commented on Sep 22, 2026

    @tbright92
    Author

    @StefH My apologies, I misunderstood the dependency tree. It appears that 2.17.0 has the same issue due to RamlToOpenApiConverter.SourceOnly 0.40.0 adding Microsoft.OpenApi.YamlReader 3.10.2 to Directory.Build.props, whereas previously it was in RamlToOpenApiConverter.SourceOnly.csproj with PrivateAssets="All", thereby not exposing it as a required transitive dependency.

  8. reopened this on Sep 22, 2026
  9. StefH commented on Sep 22, 2026

    @StefH
    Collaborator

    Thanks for the comment.

    I will see if I can fix it

  10. StefH commented on Sep 22, 2026

    @StefH
    Collaborator
  11. StefH commented on Sep 22, 2026

    @StefH
    Collaborator
  12. StefH commented on Sep 22, 2026

    @StefH
    Collaborator

    New version will be released shortly.

  13. tbright92 commented on Sep 22, 2026

    @tbright92
    Author

    Once again, thanks @StefH for the quick response and fix! Confirmed all is good for us now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions