Skip to content

Conversation

@mdaneri
Copy link
Contributor

@mdaneri mdaneri commented Jan 21, 2026

Pull Request

Description

Adds support for the mutualTLS security scheme type by introducing SecuritySchemeType.MutualTLS and ensuring it serializes correctly.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe):

Related Issue(s)

Fixes #2693

Changes Made

  • Add SecuritySchemeType.MutualTLS (with display name mutualTLS)
  • Handle mutualTLS serialization in OpenApiSecurityScheme (no extra fields)
  • Add a reader sample + test validating mutualTLS parsing

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • All existing tests pass

Notes: dotnet build Microsoft.OpenApi.sln.

Checklist

  • My code follows the code style of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Versions applicability

  • My change applies to the version 1.X of the library, if so PR link:
  • My change applies to the version 2.X of the library, if so PR link:
  • My change applies to the version 3.X of the library, if so PR link:
  • I have evaluated the applicability of my change against the other versions above.

Additional Notes

None.

@mdaneri mdaneri requested a review from a team as a code owner January 21, 2026 14: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.

Thanks for the contribution!

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 making the changes!

@baywet baywet enabled auto-merge (squash) January 21, 2026 15:37
@baywet baywet merged commit a4efdfe into microsoft:main Jan 21, 2026
9 checks passed
baywet pushed a commit that referenced this pull request Jan 21, 2026
feat(models): support mutualTLS security scheme

* fix(writers): throw for mutualTLS in OAS 3.0
@mdaneri mdaneri deleted the feat/2693-mutualtls-security-scheme branch January 21, 2026 16:21
baywet added a commit that referenced this pull request Jan 21, 2026
Support mutualTLS security scheme type (#2696)
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.

Missing mutualTLS Security Scheme Support in Microsoft.OpenApi

2 participants