Skip to content

Commit 5531eb3

Browse files
committed
1. Update the version to 1.0.7
2. Add PublicApi analyzier 3. Add config for ShowMsDocGroupPath
1 parent 4c685b5 commit 5531eb3

File tree

7 files changed

+232
-1
lines changed

7 files changed

+232
-1
lines changed

src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
<Import Project="..\Build.props" />
2020

2121
<ItemGroup>
22+
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.2">
23+
<PrivateAssets>all</PrivateAssets>
24+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
25+
</PackageReference>
2226
<PackageReference Include="Microsoft.OData.Edm" Version="7.6.1" />
2327
<PackageReference Include="Microsoft.OpenApi" Version="1.2.2" />
2428
</ItemGroup>

src/Microsoft.OpenApi.OData.Reader/OpenApiConvertSettings.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ public string PathPrefix
173173
/// </summary>
174174
public bool ShowRootPath { get; set; } = false;
175175

176+
/// <summary>
177+
/// Gets/sets a value indicating whether or not to show the group path extension.
178+
/// </summary>
179+
public bool ShowMsDosGroupPath { get; set; } = true;
180+
176181
/// <summary>
177182
/// Gets/sets a the path provider.
178183
/// </summary>

src/Microsoft.OpenApi.OData.Reader/PathItem/NavigationPropertyPathItemHandler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ protected override void Initialize(ODataContext context, ODataPath path)
202202
/// <inheritdoc/>
203203
protected override void SetExtensions(OpenApiPathItem item)
204204
{
205+
if (!Context.Settings.ShowMsDosGroupPath)
206+
{
207+
return;
208+
}
209+
205210
IList<ODataPath> samePaths = new List<ODataPath>();
206211
foreach (var path in Context.AllPaths.Where(p => p.Kind == ODataPathKind.NavigationProperty && p != Path))
207212
{

src/Microsoft.OpenApi.OData.Reader/PathItem/OperationPathItemHandler.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ protected override void Initialize(ODataContext context, ODataPath path)
5555
/// <inheritdoc/>
5656
protected override void SetExtensions(OpenApiPathItem item)
5757
{
58+
if (!Context.Settings.ShowMsDosGroupPath)
59+
{
60+
return;
61+
}
62+
5863
ODataNavigationSourceSegment navigationSourceSegment = Path.FirstSegment as ODataNavigationSourceSegment;
5964
IEdmNavigationSource currentNavSource = navigationSourceSegment.NavigationSource;
6065

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


src/Microsoft.OpenApi.OData.Reader/PublicAPI.Unshipped.txt

Lines changed: 211 additions & 0 deletions
Large diffs are not rendered by default.

tool/versioning.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PropertyGroup>
1515
<VersionMajor Condition="'$(VersionMajor)' == ''">1</VersionMajor>
1616
<VersionMinor Condition="'$(VersionMinor)' == ''">0</VersionMinor>
17-
<VersionBuild Condition="'$(VersionBuild)' == ''">6</VersionBuild>
17+
<VersionBuild Condition="'$(VersionBuild)' == ''">7</VersionBuild>
1818
<VersionRelease Condition="'$(VersionRelease)' == ''"></VersionRelease>
1919
</PropertyGroup>
2020

0 commit comments

Comments
 (0)