Skip to content

Commit 7a9b01e

Browse files
committed
chore: Merge remote-tracking branch 'origin/main' into feat/enable-NRT
2 parents 7f71fb7 + f7529ad commit 7a9b01e

File tree

20 files changed

+182
-49
lines changed

20 files changed

+182
-49
lines changed

.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-preview.11"
2+
".": "2.0.0-preview.12"
33
}

CHANGELOG.md

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

3+
## [2.0.0-preview.12](https://github.com/microsoft/OpenAPI.NET/compare/v2.0.0-preview.11...v2.0.0-preview.12) (2025-03-07)
4+
5+
6+
### Bug Fixes
7+
8+
* fixes serialization of openApidocs with operation tags with settings to inline references ([8eecae6](https://github.com/microsoft/OpenAPI.NET/commit/8eecae6183f594c5508fc2c74d395c6030ce8727))
9+
* fixes serialization of openApidocs with operation tags with settings to inline references. ([f67fe64](https://github.com/microsoft/OpenAPI.NET/commit/f67fe64e669a3f8518d89b007150c3e1bdb69fd1))
10+
311
## [2.0.0-preview.11](https://github.com/microsoft/OpenAPI.NET/compare/v2.0.0-preview10...v2.0.0-preview.11) (2025-03-03)
412

513

Directory.Build.props

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

build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
echo "Building Microsoft.OpenApi"
4+
5+
PROJ="$(dirname "$0")/src/Microsoft.OpenApi/Microsoft.OpenApi.csproj"
6+
dotnet msbuild "$PROJ" /t:restore /p:Configuration=Release
7+
dotnet msbuild "$PROJ" /t:build /p:Configuration=Release
8+
dotnet msbuild "$PROJ" /t:pack "/p:Configuration=Release;PackageOutputPath=$(dirname "$0")/artifacts"
9+
10+
echo "Building Microsoft.OpenApi.Readers"
11+
12+
PROJ="$(dirname "$0")/src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj"
13+
dotnet msbuild "$PROJ" /t:restore /p:Configuration=Release
14+
dotnet msbuild "$PROJ" /t:build /p:Configuration=Release
15+
dotnet msbuild "$PROJ" /t:pack "/p:Configuration=Release;PackageOutputPath=$(dirname "$0")/artifacts"
16+
17+
echo "Building Microsoft.OpenApi.Hidi"
18+
19+
PROJ="$(dirname "$0")/src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj"
20+
dotnet msbuild "$PROJ" /t:restore /p:Configuration=Release
21+
dotnet msbuild "$PROJ" /t:build /p:Configuration=Release
22+
dotnet msbuild "$PROJ" /t:pack "/p:Configuration=Release;PackageOutputPath=$(dirname "$0")/artifacts"

global.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.406"
4+
}
5+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
4040
<PackageReference Include="Microsoft.OData.Edm" Version="8.2.3" />
4141
<PackageReference Include="Microsoft.OpenApi.OData" Version="2.0.0-preview9" />
42-
<PackageReference Include="Microsoft.OpenApi.ApiManifest" Version="2.0.0-preview1" />
42+
<PackageReference Include="Microsoft.OpenApi.ApiManifest" Version="2.0.0-preview2" />
4343
<PackageReference Include="System.CommandLine.Hosting" Version="0.4.0-alpha.22272.1" />
4444
</ItemGroup>
4545

src/Microsoft.OpenApi.Readers/Microsoft.OpenApi.Readers.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</PackageReference>
3535

3636
<PackageReference Include="SharpYaml" Version="2.1.1" />
37-
<PackageReference Include="System.Text.Json" Version="[8.0,)" />
37+
<PackageReference Include="System.Text.Json" Version="[8.0.5,)" />
3838
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-hh2w-p6rv-4g7w" />
3939
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-8g4q-xg66-9fp4" />
4040
</ItemGroup>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license.
33

44
using System.Collections.Generic;
@@ -9,11 +9,11 @@ namespace Microsoft.OpenApi.Interfaces
99
/// Represents an Open API element that can be annotated with
1010
/// non-serializable properties in a property bag.
1111
/// </summary>
12-
public interface IOpenApiAnnotatable
12+
public interface IMetadataContainer
1313
{
1414
/// <summary>
1515
/// A collection of properties associated with the current OpenAPI element.
1616
/// </summary>
17-
IDictionary<string, object>? Annotations { get; set; }
17+
IDictionary<string, object> Metadata { get; set; }
1818
}
1919
}

src/Microsoft.OpenApi/Microsoft.OpenApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
2525
</PropertyGroup>
2626
<ItemGroup>
27-
<PackageReference Include="System.Text.Json" Version="[8.0,)" />
27+
<PackageReference Include="System.Text.Json" Version="[8.0.5,)" />
2828
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-hh2w-p6rv-4g7w" />
2929
<NuGetAuditSuppress Include="https://github.com/advisories/GHSA-8g4q-xg66-9fp4" />
3030
</ItemGroup>

src/Microsoft.OpenApi/Models/OpenApiDocument.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.OpenApi.Models
2424
/// <summary>
2525
/// Describes an OpenAPI object (OpenAPI document). See: https://spec.openapis.org
2626
/// </summary>
27-
public class OpenApiDocument : IOpenApiSerializable, IOpenApiExtensible, IOpenApiAnnotatable
27+
public class OpenApiDocument : IOpenApiSerializable, IOpenApiExtensible, IMetadataContainer
2828
{
2929
/// <summary>
3030
/// Register components in the document to the workspace
@@ -109,7 +109,7 @@ public ISet<OpenApiTag>? Tags
109109
public IDictionary<string, IOpenApiExtension>? Extensions { get; set; } = new Dictionary<string, IOpenApiExtension>();
110110

111111
/// <inheritdoc />
112-
public IDictionary<string, object>? Annotations { get; set; }
112+
public IDictionary<string, object>? Metadata { get; set; }
113113

114114
/// <summary>
115115
/// Implements IBaseDocument
@@ -143,7 +143,7 @@ public OpenApiDocument(OpenApiDocument? document)
143143
Tags = document?.Tags != null ? new HashSet<OpenApiTag>(document.Tags, OpenApiTagComparer.Instance) : null;
144144
ExternalDocs = document?.ExternalDocs != null ? new(document.ExternalDocs) : null;
145145
Extensions = document?.Extensions != null ? new Dictionary<string, IOpenApiExtension>(document.Extensions) : null;
146-
Annotations = document?.Annotations != null ? new Dictionary<string, object>(document.Annotations) : null;
146+
Metadata = document?.Metadata != null ? new Dictionary<string, object>(document.Metadata) : null;
147147
BaseUri = document?.BaseUri != null ? document.BaseUri : new(OpenApiConstants.BaseRegistryUri + Guid.NewGuid());
148148
}
149149

0 commit comments

Comments
 (0)