File tree 4 files changed +15
-4
lines changed
Microsoft.OpenApi.Workbench
test/Microsoft.OpenApi.Tests/Models
4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 7
7
<ImportWindowsDesktopTargets >true</ImportWindowsDesktopTargets >
8
8
</PropertyGroup >
9
9
<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 " >
11
11
<PrivateAssets >all</PrivateAssets >
12
12
</PackageReference >
13
13
<PackageReference Include =" Microsoft.Windows.Compatibility" Version =" 6.0.0" />
Original file line number Diff line number Diff line change 11
11
<Company >Microsoft</Company >
12
12
<Title >Microsoft.OpenApi</Title >
13
13
<PackageId >Microsoft.OpenApi</PackageId >
14
- <Version >1.4.2 </Version >
14
+ <Version >1.4.3 </Version >
15
15
<Description >.NET models with JSON and YAML writers for OpenAPI specification</Description >
16
16
<Copyright >© Microsoft Corporation. All rights reserved.</Copyright >
17
17
<PackageTags >OpenAPI .NET</PackageTags >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public OpenApiResponses() { }
16
16
/// <summary>
17
17
/// Initializes a copy of <see cref="OpenApiResponses"/> object
18
18
/// </summary>
19
- public OpenApiResponses ( OpenApiResponses openApiResponses ) { }
20
-
19
+ /// <param name=" openApiResponses">The <see cref="OpenApiResponses"/></param>
20
+ public OpenApiResponses ( OpenApiResponses openApiResponses ) : base ( dictionary : openApiResponses ) { }
21
21
}
22
22
}
Original file line number Diff line number Diff line change @@ -787,5 +787,16 @@ public void SerializeOperationWithNullCollectionAsV2JsonWorks()
787
787
expected = expected . MakeLineBreaksEnvironmentNeutral ( ) ;
788
788
actual . Should ( ) . Be ( expected ) ;
789
789
}
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
+ }
790
801
}
791
802
}
You can’t perform that action at this time.
0 commit comments