We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5550f01 commit b8d0d2bCopy full SHA for b8d0d2b
src/Microsoft.OpenApi.Hidi/OpenApiService.cs
@@ -1,4 +1,4 @@
1
-// Copyright (c) Microsoft Corporation. All rights reserved.
+// Copyright (c) Microsoft Corporation. All rights reserved.
2
// Licensed under the MIT license.
3
4
using System;
@@ -87,8 +87,9 @@ string filterbycollection
87
88
if (!string.IsNullOrEmpty(csdl))
89
{
90
- // Default to yaml during csdl to OpenApi conversion
+ // Default to yaml and OpenApiVersion 3 during csdl to OpenApi conversion
91
openApiFormat = format ?? GetOpenApiFormat(csdl, logger);
92
+ version ??= OpenApiSpecVersion.OpenApi3_0;
93
94
stream = await GetStream(csdl, logger);
95
document = ConvertCsdlToOpenApi(stream);
0 commit comments