File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed 
Microsoft.OpenApi.Workbench 
test/Microsoft.OpenApi.Tests/Models Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 77    <ImportWindowsDesktopTargets >true</ImportWindowsDesktopTargets >
88  </PropertyGroup >
99  <ItemGroup >
10-     <PackageReference  Include =" Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version =" 0.4.336902 " 
10+     <PackageReference  Include =" Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers" Version =" 0.4.346202 " 
1111      <PrivateAssets >all</PrivateAssets >
1212    </PackageReference >
1313    <PackageReference  Include =" Microsoft.Windows.Compatibility" Version =" 6.0.0" 
Original file line number Diff line number Diff line change 1111        <Company >Microsoft</Company >
1212        <Title >Microsoft.OpenApi</Title >
1313        <PackageId >Microsoft.OpenApi</PackageId >
14-         <Version >1.4.2 </Version >
14+         <Version >1.4.3 </Version >
1515        <Description >.NET models with JSON and YAML writers for OpenAPI specification</Description >
1616        <Copyright >© Microsoft Corporation. All rights reserved.</Copyright >
1717        <PackageTags >OpenAPI .NET</PackageTags >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public OpenApiResponses() { }
1616        /// <summary> 
1717        /// Initializes a copy of <see cref="OpenApiResponses"/> object 
1818        /// </summary> 
19-         public   OpenApiResponses ( OpenApiResponses   openApiResponses )   {   } 
20- 
19+         /// <param name=" openApiResponses">The <see cref="OpenApiResponses"/></param> 
20+          public   OpenApiResponses ( OpenApiResponses   openApiResponses )   :   base ( dictionary :   openApiResponses )   { } 
2121    } 
2222} 
Original file line number Diff line number Diff line change @@ -787,5 +787,16 @@ public void SerializeOperationWithNullCollectionAsV2JsonWorks()
787787            expected  =  expected . MakeLineBreaksEnvironmentNeutral ( ) ; 
788788            actual . Should ( ) . Be ( expected ) ; 
789789        } 
790+ 
791+         [ Fact ] 
792+         public  void  EnsureOpenApiOperationCopyConstructorCopiesResponsesObject ( ) 
793+         { 
794+             // Arrange and act 
795+             var  operation  =  new  OpenApiOperation ( _operationWithBody ) ; 
796+ 
797+             // Assert 
798+             Assert . NotNull ( operation . Responses ) ; 
799+             Assert . Equal ( 2 ,  operation . Responses . Count ) ; 
800+         } 
790801    } 
791802} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments