Skip to content

Commit 9029a2f

Browse files
committed
Merge branch 'main' into feat/upgrade-oai
Signed-off-by: Vincent Biret <[email protected]>
2 parents 1bc424c + d2a56d9 commit 9029a2f

16 files changed

+52
-100
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,6 @@ extends:
148148
projects: src/Microsoft.OpenApi.OData.Reader/Microsoft.OpenAPI.OData.Reader.csproj
149149
arguments: '-o $(Build.ArtifactStagingDirectory) --configuration $(BuildConfiguration) --no-build --include-symbols --include-source /p:SymbolPackageFormat=snupkg'
150150

151-
- task: PowerShell@2
152-
displayName: 'Validate project version has been incremented'
153-
condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
154-
inputs:
155-
targetType: 'filePath'
156-
filePath: $(System.DefaultWorkingDirectory)\scripts\ValidateProjectVersionUpdated.ps1
157-
pwsh: true
158-
159151
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5
160152
displayName: 'ESRP CodeSigning Nuget Packages'
161153
inputs:

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.0.0-preview9"
2+
".": "2.0.0-preview.11"
33
}

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## [2.0.0-preview.11](https://github.com/microsoft/OpenAPI.NET.OData/compare/v2.0.0-preview.10...v2.0.0-preview.11) (2025-03-19)
4+
5+
6+
### Bug Fixes
7+
8+
* bump oai version ([caa2055](https://github.com/microsoft/OpenAPI.NET.OData/commit/caa2055e039298d4471f265797b6f6be381a03ce))
9+
* bump oai version ([d40746c](https://github.com/microsoft/OpenAPI.NET.OData/commit/d40746c055af4d7d7a5ae8fec3baeb862ab8ad56))
10+
11+
## [2.0.0-preview.10](https://github.com/microsoft/OpenAPI.NET.OData/compare/v2.0.0-preview10...v2.0.0-preview.10) (2025-03-18)
12+
13+
14+
### Miscellaneous Chores
15+
16+
* release 2.0.0-preview.10 ([5cd79d7](https://github.com/microsoft/OpenAPI.NET.OData/commit/5cd79d76cc63ab3c311351f8e661b2bd7b88b35b))
17+
18+
## [2.0.0-preview10](https://github.com/microsoft/OpenAPI.NET.OData/compare/v2.0.0-preview9...v2.0.0-preview10) (2025-03-18)
19+
20+
21+
### Features
22+
23+
* bump openapi.net packages to the latest preview. ([d8b9f3f](https://github.com/microsoft/OpenAPI.NET.OData/commit/d8b9f3f15a2586646fb78bf803ecf7a11db1d053))
24+
* migrates to the latest preview of OAI.net ([3295eb9](https://github.com/microsoft/OpenAPI.NET.OData/commit/3295eb9faec51b77bfd089a80539a0cbeea41641))
25+
26+
27+
### Bug Fixes
28+
29+
* disable failing test for now. ([6f52acc](https://github.com/microsoft/OpenAPI.NET.OData/commit/6f52acc33d66dd9c55ed6952e8b4472364ccefb7))
30+
331
## [2.0.0-preview9](https://github.com/microsoft/OpenAPI.NET.OData/compare/v2.0.0-preview8...v2.0.0-preview9) (2025-02-25)
432

533

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageProjectUrl>https://github.com/Microsoft/OpenAPI.NET.OData</PackageProjectUrl>
1414
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
1515
<PackageTags>Microsoft OpenApi OData EDM</PackageTags>
16-
<Version>2.0.0-preview9</Version>
16+
<Version>2.0.0-preview.11</Version>
1717
</PropertyGroup>
1818
<!-- https://github.com/clairernovotny/DeterministicBuilds#deterministic-builds -->
1919
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">

scripts/ValidateProjectVersionUpdated.ps1

Lines changed: 0 additions & 80 deletions
This file was deleted.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
</PackageReference>
3131
<PackageReference Include="Microsoft.OData.Edm" Version="8.2.3" />
32-
<PackageReference Include="Microsoft.OpenApi" Version="2.0.0-preview.13" />
33-
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
34-
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.13.2">
35-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
36-
<PrivateAssets>all</PrivateAssets>
37-
</PackageReference>
32+
<PackageReference Include="Microsoft.OpenApi" Version="2.0.0-preview.15" />
33+
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
34+
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.13.61">
35+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
36+
<PrivateAssets>all</PrivateAssets>
37+
</PackageReference>
3838
</ItemGroup>
3939

4040
<ItemGroup>

src/Microsoft.OpenApi.OData.Reader/Operation/ComplexPropertyBaseOperationHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using Microsoft.OpenApi.OData.Common;
1010
using Microsoft.OpenApi.OData.Edm;
1111
using Microsoft.OpenApi.OData.Vocabulary.Core;
12+
using System.Collections.Generic;
1213

1314
namespace Microsoft.OpenApi.OData.Operation;
1415

@@ -35,7 +36,7 @@ protected override void Initialize(ODataContext context, ODataPath path)
3536
protected override void SetTags(OpenApiOperation operation)
3637
{
3738
string tagName = EdmModelHelper.GenerateComplexPropertyPathTagName(Path, Context);
38-
39+
operation.Tags ??= new HashSet<OpenApiTagReference>();
3940
if (!string.IsNullOrEmpty(tagName))
4041
{
4142
Context.AddExtensionToTag(tagName, Constants.xMsTocType, new OpenApiAny("page"), () => new OpenApiTag()

src/Microsoft.OpenApi.OData.Reader/Operation/DollarCountGetOperationHandler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ private void AddODataSegmentToAnnotables(ODataSegment oDataSegment, ODataSegment
8585
protected override void SetTags(OpenApiOperation operation)
8686
{
8787
string tagName = null;
88+
operation.Tags ??= new HashSet<OpenApiTagReference>();
89+
8890
if (SecondLastSegment is ODataNavigationSourceSegment sourceSegment)
8991
{
9092
tagName = TagNameFromNavigationSourceSegment(sourceSegment);

src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationImportOperationHandler.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ protected override void SetTags(OpenApiOperation operation)
141141
var tag = CreateTag(EdmOperationImport);
142142
tag.Extensions.Add(Constants.xMsTocType, new OpenApiAny("container"));
143143
Context.AppendTag(tag);
144+
145+
operation.Tags ??= new HashSet<OpenApiTagReference>();
144146
operation.Tags.Add(new OpenApiTagReference(tag.Name, _document));
145147

146148
base.SetTags(operation);

src/Microsoft.OpenApi.OData.Reader/Operation/EdmOperationOperationHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ protected override void SetTags(OpenApiOperation operation)
154154
Name = tagName,
155155
};
156156
tag.Extensions.Add(Constants.xMsTocType, new OpenApiAny("container"));
157+
operation.Tags ??= new HashSet<OpenApiTagReference>();
157158
operation.Tags.Add(new OpenApiTagReference(tag.Name, _document));
158159

159160
Context.AppendTag(tag);

0 commit comments

Comments
 (0)