Skip to content

Commit 88e4406

Browse files
Merge branch 'main' into feat-handle-relative-references
2 parents e0e3095 + 2f9a78b commit 88e4406

File tree

428 files changed

+1876
-2961
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

428 files changed

+1876
-2961
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.20"
2+
".": "2.0.0-preview.21"
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.21](https://github.com/microsoft/OpenAPI.NET/compare/v2.0.0-preview.20...v2.0.0-preview.21) (2025-05-21)
4+
5+
6+
### Bug Fixes
7+
8+
* do not throw when operation tag is missing matching global tag ([fe133f2](https://github.com/microsoft/OpenAPI.NET/commit/fe133f2604e9b65cc1c7011aab7c62f44e649d19))
9+
* do not throw when operation tag is missing matching global tag ([2c5aa40](https://github.com/microsoft/OpenAPI.NET/commit/2c5aa40cbb8bf1e96c1ccce6273579e70b69ade2))
10+
311
## [2.0.0-preview.20](https://github.com/microsoft/OpenAPI.NET/compare/v2.0.0-preview.19...v2.0.0-preview.20) (2025-05-20)
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.20</Version>
15+
<Version>2.0.0-preview.21</Version>
1616
</PropertyGroup>
1717
<!-- https://github.com/clairernovotny/DeterministicBuilds#deterministic-builds -->
1818
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">

performance/benchmark/Descriptions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Net.Http;
55
using System.Reflection;
66
using System.Threading.Tasks;
77
using BenchmarkDotNet.Attributes;
88
using Microsoft.OpenApi;
9-
using Microsoft.OpenApi.Models;
109
using Microsoft.OpenApi.Reader;
1110

1211
namespace performance;

performance/benchmark/EmptyModels.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
using System;
2-
using BenchmarkDotNet;
3-
using BenchmarkDotNet.Attributes;
4-
using Microsoft.OpenApi.Models;
1+
using BenchmarkDotNet.Attributes;
2+
using Microsoft.OpenApi;
53

64
namespace performance;
75
[MemoryDiagnoser]

src/Microsoft.OpenApi.Hidi/Extensions/OpenApiExtensibleExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using Microsoft.OpenApi.Extensions;
2-
using Microsoft.OpenApi.Interfaces;
3-
using System.Collections.Generic;
1+
using System.Collections.Generic;
42
using System.Text.Json.Nodes;
53

64
namespace Microsoft.OpenApi.Hidi.Extensions

src/Microsoft.OpenApi.Hidi/Formatters/PowerShellFormatter.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
using Humanizer;
88
using Humanizer.Inflections;
99
using Microsoft.OpenApi.Hidi.Extensions;
10-
using Microsoft.OpenApi.Models;
11-
using Microsoft.OpenApi.Models.Interfaces;
12-
using Microsoft.OpenApi.Services;
1310

1411
namespace Microsoft.OpenApi.Hidi.Formatters
1512
{

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,11 @@
2323
using Microsoft.OpenApi.ApiManifest;
2424
using Microsoft.OpenApi.ApiManifest.OpenAI;
2525
using Microsoft.OpenApi.ApiManifest.OpenAI.Authentication;
26-
using Microsoft.OpenApi.Extensions;
2726
using Microsoft.OpenApi.Hidi.Extensions;
2827
using Microsoft.OpenApi.Hidi.Formatters;
2928
using Microsoft.OpenApi.Hidi.Options;
3029
using Microsoft.OpenApi.Hidi.Utilities;
31-
using Microsoft.OpenApi.Models;
32-
using Microsoft.OpenApi.OData;
3330
using Microsoft.OpenApi.Reader;
34-
using Microsoft.OpenApi.Services;
35-
using Microsoft.OpenApi.Writers;
36-
using Microsoft.OpenApi.YamlReader;
3731
using static Microsoft.OpenApi.Hidi.OpenApiSpecVersionHelper;
3832

3933
namespace Microsoft.OpenApi.Hidi
@@ -420,7 +414,8 @@ private static async Task<ReadResult> ParseOpenApiAsync(string openApiFile, bool
420414
var edmModel = CsdlReader.Parse(XElement.Parse(csdlText).CreateReader());
421415
settings ??= SettingsUtilities.GetConfiguration();
422416

423-
var document = edmModel.ConvertToOpenApi(SettingsUtilities.GetOpenApiConvertSettings(settings, metadataVersion));
417+
// TODO: uncomment when namespaces are fixed in OData lib
418+
var document = new OpenApiDocument(); //edmModel.ConvertToOpenApi(SettingsUtilities.GetOpenApiConvertSettings(settings, metadataVersion));
424419
document = FixReferences(document, format);
425420

426421
return document;

src/Microsoft.OpenApi.Hidi/StatsVisitor.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
using System;
55
using System.Collections.Generic;
6-
using Microsoft.OpenApi.Models;
7-
using Microsoft.OpenApi.Models.Interfaces;
8-
using Microsoft.OpenApi.Services;
96

107
namespace Microsoft.OpenApi.Hidi
118
{

src/Microsoft.OpenApi.Workbench/MainModel.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@
88
using System.Net.Http;
99
using System.Text;
1010
using System.Threading.Tasks;
11-
using Microsoft.OpenApi.Extensions;
12-
using Microsoft.OpenApi.Models;
1311
using Microsoft.OpenApi.Reader;
14-
using Microsoft.OpenApi.Services;
15-
using Microsoft.OpenApi.Validations;
16-
using Microsoft.OpenApi.YamlReader;
17-
using Microsoft.OpenApi.Writers;
1812

1913
namespace Microsoft.OpenApi.Workbench
2014
{

0 commit comments

Comments
 (0)