Skip to content

Commit 2937f02

Browse files
authored
Merge pull request #738 from /issues/734
Fixed ValidateDocument method in hidi
2 parents 6adac99 + 34b56de commit 2937f02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
<LangVersion>9.0</LangVersion>
77
<PackAsTool>true</PackAsTool>
88
<PackageIconUrl>http://go.microsoft.com/fwlink/?LinkID=288890</PackageIconUrl>

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ private static async Task<Stream> GetStream(string input, ILogger logger)
251251
{
252252
try
253253
{
254-
using var httpClientHandler = new HttpClientHandler()
254+
var httpClientHandler = new HttpClientHandler()
255255
{
256256
SslProtocols = System.Security.Authentication.SslProtocols.Tls12,
257257
};
258258
using var httpClient = new HttpClient(httpClientHandler)
259259
{
260-
DefaultRequestVersion = HttpVersion.Version20
260+
DefaultRequestVersion = HttpVersion.Version20
261261
};
262262
stream = await httpClient.GetStreamAsync(input);
263263
}
@@ -323,7 +323,7 @@ public static Dictionary<string, List<string>> ParseJsonCollectionFile(Stream st
323323
return requestUrls;
324324
}
325325

326-
internal static async void ValidateOpenApiDocument(string openapi, LogLevel loglevel)
326+
internal static async Task ValidateOpenApiDocument(string openapi, LogLevel loglevel)
327327
{
328328
if (string.IsNullOrEmpty(openapi))
329329
{

0 commit comments

Comments
 (0)