@@ -530,6 +530,7 @@ bool CanExpandReference(SchemaContext resolvedReference)
530530 . Values
531531 . ToArray ( ) ;
532532 var hasOAuth2Support = authorizations . Any ( static x => x . Type is SecuritySchemeType . OAuth2 ) ;
533+ var hasMutualTlsSupport = authorizations . Any ( static x => x . Type is SecuritySchemeType . MutualTLS ) ;
533534
534535 var convertersBuilder = ImmutableArray . CreateBuilder < string > ( ) ;
535536 // Enum converters
@@ -639,6 +640,7 @@ .. resolvedIncludedTags.Select(tag => (PropertyData.Default with
639640 GlobalSettings : csharpGlobalSettings ,
640641 Converters : converters ,
641642 HasOAuth2Support : hasOAuth2Support ,
643+ HasMutualTlsSupport : hasMutualTlsSupport ,
642644 Servers : rootClientServers ,
643645 UsesServerSelectionSupport : usesServerSelectionSupport ) ] : [ ] ;
644646 if ( settings . GroupByTags && ( settings . GenerateSdk || settings . GenerateConstructors ) )
@@ -658,6 +660,7 @@ .. resolvedIncludedTags.Select(tag => (PropertyData.Default with
658660 GlobalSettings : csharpGlobalSettings ,
659661 Converters : [ ] ,
660662 HasOAuth2Support : hasOAuth2Support ,
663+ HasMutualTlsSupport : hasMutualTlsSupport ,
661664 Servers : GetClientServers ( CSharpClientNameGenerator . Generate ( tag ) , clientServersByClass , documentServers ) ,
662665 UsesServerSelectionSupport : usesServerSelectionSupport ) ) )
663666 . ToArray ( ) ;
@@ -909,6 +912,7 @@ internal static Models.Data Enrich(
909912 . Values
910913 . ToArray ( ) ;
911914 var hasOAuth2Support = authorizations . Any ( static x => x . Type is SecuritySchemeType . OAuth2 ) ;
915+ var hasMutualTlsSupport = authorizations . Any ( static x => x . Type is SecuritySchemeType . MutualTLS ) ;
912916
913917 var convertersBuilder = ImmutableArray . CreateBuilder < string > ( ) ;
914918 foreach ( var value in enums )
@@ -1016,6 +1020,7 @@ .. resolvedIncludedTags.Select(tag => (PropertyData.Default with
10161020 GlobalSettings : globalSettings ,
10171021 Converters : converters ,
10181022 HasOAuth2Support : hasOAuth2Support ,
1023+ HasMutualTlsSupport : hasMutualTlsSupport ,
10191024 Servers : rootClientServers ,
10201025 UsesServerSelectionSupport : usesServerSelectionSupport ) ]
10211026 : [ ] ;
@@ -1036,6 +1041,7 @@ .. resolvedIncludedTags.Select(tag => (PropertyData.Default with
10361041 GlobalSettings : globalSettings ,
10371042 Converters : [ ] ,
10381043 HasOAuth2Support : hasOAuth2Support ,
1044+ HasMutualTlsSupport : hasMutualTlsSupport ,
10391045 Servers : GetClientServers ( CSharpClientNameGenerator . Generate ( tag ) , clientServersByClass , documentServers ) ,
10401046 UsesServerSelectionSupport : usesServerSelectionSupport ) ) )
10411047 . ToArray ( ) ;
0 commit comments