File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
Microsoft.OpenApi.Readers Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 9
9
<Nullable >enable</Nullable >
10
10
<ToolCommandName >hidi</ToolCommandName >
11
11
<PackageOutputPath >./../../artifacts</PackageOutputPath >
12
- <Version >1.3.5 </Version >
12
+ <Version >1.3.6 </Version >
13
13
<Description >OpenAPI.NET CLI tool for slicing OpenAPI documents</Description >
14
14
<SignAssembly >true</SignAssembly >
15
15
<!-- https://github.com/dotnet/sourcelink/blob/main/docs/README.md#embeduntrackedsources -->
Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
+ using System . IO ;
4
5
using Microsoft . Extensions . Configuration ;
5
6
using Microsoft . OpenApi . OData ;
6
7
@@ -11,15 +12,19 @@ internal static class SettingsUtilities
11
12
internal static IConfiguration GetConfiguration ( string ? settingsFile = null )
12
13
{
13
14
if ( string . IsNullOrEmpty ( settingsFile ) )
15
+ {
14
16
settingsFile = "appsettings.json" ;
17
+ }
18
+
19
+ var settingsFilePath = Path . Combine ( Directory . GetCurrentDirectory ( ) , settingsFile ) ;
15
20
16
21
IConfiguration config = new ConfigurationBuilder ( )
17
- . AddJsonFile ( settingsFile , true )
18
- . Build ( ) ;
22
+ . AddJsonFile ( settingsFilePath , true )
23
+ . Build ( ) ;
19
24
20
25
return config ;
21
26
}
22
-
27
+
23
28
internal static OpenApiConvertSettings GetOpenApiConvertSettings ( IConfiguration config , string ? metadataVersion )
24
29
{
25
30
if ( config == null ) { throw new System . ArgumentNullException ( nameof ( config ) ) ; }
Original file line number Diff line number Diff line change 3
3
<TargetFramework >netstandard2.0</TargetFramework >
4
4
<LangVersion >latest</LangVersion >
5
5
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
6
- <Version >1.6.10 </Version >
6
+ <Version >1.6.11 </Version >
7
7
<Description >OpenAPI.NET Readers for JSON and YAML documents</Description >
8
8
<SignAssembly >true</SignAssembly >
9
9
<!-- https://github.com/dotnet/sourcelink/blob/main/docs/README.md#embeduntrackedsources -->
Original file line number Diff line number Diff line change 3
3
<TargetFramework >netstandard2.0</TargetFramework >
4
4
<LangVersion >Latest</LangVersion >
5
5
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
6
- <Version >1.6.10 </Version >
6
+ <Version >1.6.11 </Version >
7
7
<Description >.NET models with JSON and YAML writers for OpenAPI specification</Description >
8
8
<SignAssembly >true</SignAssembly >
9
9
<!-- https://github.com/dotnet/sourcelink/blob/main/docs/README.md#embeduntrackedsources -->
You can’t perform that action at this time.
0 commit comments