Skip to content

Commit 4b7c165

Browse files
authored
Merge pull request #864 from microsoft/feature/discriminator
enables discriminator in hidi
2 parents 0069b53 + 81fea5e commit 4b7c165

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@
1515
<PackageId>Microsoft.OpenApi.Hidi</PackageId>
1616
<ToolCommandName>hidi</ToolCommandName>
1717
<PackageOutputPath>./../../artifacts</PackageOutputPath>
18-
<Version>1.0.0-preview2</Version>
18+
<Version>1.0.0-preview3</Version>
1919
<Description>OpenAPI.NET CLI tool for slicing OpenAPI documents</Description>
2020
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
2121
<PackageTags>OpenAPI .NET</PackageTags>
2222
<RepositoryUrl>https://github.com/Microsoft/OpenAPI.NET</RepositoryUrl>
2323
<PackageReleaseNotes>
24-
- Upgrades Microsoft.OpenApi.OData to 1.0.10
25-
- Upgrades Microsoft.OData.Edm to 7.11.0
24+
- Enables discriminator values
2625
</PackageReleaseNotes>
2726
<AssemblyName>Microsoft.OpenApi.Hidi</AssemblyName>
2827
<RootNamespace>Microsoft.OpenApi.Hidi</RootNamespace>

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public static async Task<OpenApiDocument> ConvertCsdlToOpenApi(Stream csdl)
343343
PrefixEntityTypeNameBeforeKey = true,
344344
TagDepth = 2,
345345
EnablePagination = true,
346-
EnableDiscriminatorValue = false,
346+
EnableDiscriminatorValue = true,
347347
EnableDerivedTypesReferencesForRequestBody = false,
348348
EnableDerivedTypesReferencesForResponses = false,
349349
ShowRootPath = false,

0 commit comments

Comments
 (0)