Skip to content

Commit a810004

Browse files
committed
Add conversion setting
1 parent 7637861 commit a810004

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
4444
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
4545
<PackageReference Include="Microsoft.OData.Edm" Version="7.12.5" />
46-
<PackageReference Include="Microsoft.OpenApi.OData" Version="1.2.0-preview6" />
46+
<PackageReference Include="Microsoft.OpenApi.OData" Version="1.2.0-preview8" />
4747
<PackageReference Include="System.CommandLine.Hosting" Version="0.4.0-alpha.22114.1" />
4848
</ItemGroup>
4949

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ public static async Task<OpenApiDocument> ConvertCsdlToOpenApi(Stream csdl, stri
349349
ShowLinks = false,
350350
ExpandDerivedTypesNavigationProperties = false,
351351
EnableCount = true,
352-
UseSuccessStatusCodeRange = true
352+
UseSuccessStatusCodeRange = true,
353+
EnableTypeDisambiguationForDefaultValueOfOdataTypeProperty = true
353354
};
354355
config.GetSection("OpenApiConvertSettings").Bind(settings);
355356

0 commit comments

Comments
 (0)