|
23 | 23 | using Microsoft.OpenApi.ApiManifest; |
24 | 24 | using Microsoft.OpenApi.ApiManifest.OpenAI; |
25 | 25 | using Microsoft.OpenApi.ApiManifest.OpenAI.Authentication; |
26 | | -using Microsoft.OpenApi.Extensions; |
27 | 26 | using Microsoft.OpenApi.Hidi.Extensions; |
28 | 27 | using Microsoft.OpenApi.Hidi.Formatters; |
29 | 28 | using Microsoft.OpenApi.Hidi.Options; |
30 | 29 | using Microsoft.OpenApi.Hidi.Utilities; |
31 | | -using Microsoft.OpenApi.Models; |
32 | | -using Microsoft.OpenApi.OData; |
33 | 30 | using Microsoft.OpenApi.Reader; |
34 | | -using Microsoft.OpenApi.Services; |
35 | | -using Microsoft.OpenApi.Writers; |
36 | | -using Microsoft.OpenApi.YamlReader; |
37 | 31 | using static Microsoft.OpenApi.Hidi.OpenApiSpecVersionHelper; |
38 | 32 |
|
39 | 33 | namespace Microsoft.OpenApi.Hidi |
@@ -420,7 +414,8 @@ private static async Task<ReadResult> ParseOpenApiAsync(string openApiFile, bool |
420 | 414 | var edmModel = CsdlReader.Parse(XElement.Parse(csdlText).CreateReader()); |
421 | 415 | settings ??= SettingsUtilities.GetConfiguration(); |
422 | 416 |
|
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)); |
424 | 419 | document = FixReferences(document, format); |
425 | 420 |
|
426 | 421 | return document; |
|
0 commit comments