Skip to content

Commit dcf7956

Browse files
authored
Merge pull request #54 from BinkyLabs/chore/upstream-sync
Chore/upstream sync
2 parents aae50eb + a10bd0f commit dcf7956

File tree

19 files changed

+195
-35
lines changed

19 files changed

+195
-35
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Initialize CodeQL
3131
id: init_codeql
32-
uses: github/codeql-action/init@v3
32+
uses: github/codeql-action/init@v4
3333
with:
3434
queries: security-and-quality
3535

@@ -49,6 +49,6 @@ jobs:
4949
5050
- name: Perform CodeQL Analysis
5151
id: analyze_codeql
52-
uses: github/codeql-action/analyze@v3
52+
uses: github/codeql-action/analyze@v4
5353

5454
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)

.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.3.4"
2+
".": "2.3.6"
33
}

CHANGELOG.md

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

3+
## [2.3.6](https://github.com/microsoft/OpenAPI.NET/compare/v2.3.5...v2.3.6) (2025-10-20)
4+
5+
6+
### Bug Fixes
7+
8+
* a bug where empty collections would not be serialized for default values ([4c4d257](https://github.com/microsoft/OpenAPI.NET/commit/4c4d257c0cf10d1742fae9f3961e4a6242c0ce1d))
9+
10+
## [2.3.5](https://github.com/microsoft/OpenAPI.NET/compare/v2.3.4...v2.3.5) (2025-10-14)
11+
12+
13+
### Bug Fixes
14+
15+
* use settings for terse output in serialization extension methods ([246039b](https://github.com/microsoft/OpenAPI.NET/commit/246039bfa8a16c042a10a87126289de82d18b321))
16+
* use settings for terse output in serialization extension methods ([8b91278](https://github.com/microsoft/OpenAPI.NET/commit/8b912788ef18b44a083d3fd2a1d6e25c9e6e17cb))
17+
318
## [2.3.4](https://github.com/microsoft/OpenAPI.NET/compare/v2.3.3...v2.3.4) (2025-10-06)
419

520

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.3.4</Version>
15+
<Version>2.3.6</Version>
1616
</PropertyGroup>
1717
<!-- https://github.com/clairernovotny/DeterministicBuilds#deterministic-builds -->
1818
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "8.0.414"
3+
"version": "8.0.415"
44
}
55
}

performance/resultsComparer/resultsComparer.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.9" />
12-
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.9" />
13-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.9" />
14-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.9" />
11+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.10" />
12+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.10" />
13+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.10" />
14+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.10" />
1515
<PackageReference Include="System.CommandLine" Version="2.0.0-beta5.25306.1" />
16-
<PackageReference Include="system.text.json" Version="9.0.9" />
16+
<PackageReference Include="system.text.json" Version="9.0.10" />
1717
</ItemGroup>
1818

1919
</Project>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929

3030
<ItemGroup>
3131
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
32-
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.9" />
33-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.9" />
34-
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.9" />
35-
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.9" />
32+
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.10" />
33+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.10" />
34+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.10" />
35+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.10" />
3636
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15">
3737
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3838
<PrivateAssets>all</PrivateAssets>

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,16 +192,17 @@ private static async Task WriteOpenApiAsync(HidiOptions options, string openApiF
192192
using var outputStream = options.Output.Create();
193193
using var textWriter = new StreamWriter(outputStream);
194194

195-
var settings = new OpenApiWriterSettings
195+
var settings = new OpenApiJsonWriterSettings
196196
{
197197
InlineLocalReferences = options.InlineLocal,
198-
InlineExternalReferences = options.InlineExternal
198+
InlineExternalReferences = options.InlineExternal,
199+
Terse = options.TerseOutput
199200
};
200201
#pragma warning disable CA1308
201202
IOpenApiWriter writer = openApiFormat.ToLowerInvariant() switch
202203
#pragma warning restore CA1308
203204
{
204-
OpenApiConstants.Json => options.TerseOutput ? new(textWriter, settings, options.TerseOutput) : new OpenApiJsonWriter(textWriter, settings, false),
205+
OpenApiConstants.Json => new OpenApiJsonWriter(textWriter, settings),
205206
OpenApiConstants.Yaml => new OpenApiYamlWriter(textWriter, settings),
206207
_ => throw new ArgumentException("Unknown format"),
207208
};

src/Microsoft.OpenApi.Workbench/Microsoft.OpenApi.Workbench.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
<PrivateAssets>all</PrivateAssets>
2727
</PackageReference>
28-
<PackageReference Include="Microsoft.Windows.Compatibility" Version="9.0.9" />
28+
<PackageReference Include="Microsoft.Windows.Compatibility" Version="9.0.10" />
2929
</ItemGroup>
3030

3131
<!-- Windows-specific resources -->

src/Microsoft.OpenApi/Extensions/OpenApiSerializableExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public static Task SerializeAsync<T>(
8888

8989
IOpenApiWriter writer = format.ToLowerInvariant() switch
9090
{
91-
OpenApiConstants.Json => new OpenApiJsonWriter(streamWriter, settings, false),
91+
OpenApiConstants.Json when settings is OpenApiJsonWriterSettings jsonSettings => new OpenApiJsonWriter(streamWriter, jsonSettings),
92+
OpenApiConstants.Json => new OpenApiJsonWriter(streamWriter, settings),
9293
OpenApiConstants.Yaml => new OpenApiYamlWriter(streamWriter, settings),
9394
_ => throw new OpenApiException(string.Format(SRResource.OpenApiFormatNotSupported, format)),
9495
};

0 commit comments

Comments
 (0)