Skip to content

Commit 49a65c3

Browse files
committed
settings will be passed by the apps that need to override
1 parent f64e08e commit 49a65c3

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

src/Microsoft.OpenApi.Hidi/OpenApiService.cs

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -324,27 +324,7 @@ public static async Task<OpenApiDocument> ConvertCsdlToOpenApi(Stream csdl, stri
324324
var edmModel = CsdlReader.Parse(XElement.Parse(csdlText).CreateReader());
325325

326326
var config = GetConfiguration(settingsFile);
327-
var settings = new OpenApiConvertSettings()
328-
{
329-
AddSingleQuotesForStringParameters = true,
330-
AddEnumDescriptionExtension = true,
331-
DeclarePathParametersOnPathItem = true,
332-
EnableKeyAsSegment = true,
333-
EnableOperationId = true,
334-
ErrorResponsesAsDefault = false,
335-
PrefixEntityTypeNameBeforeKey = true,
336-
TagDepth = 2,
337-
EnablePagination = true,
338-
EnableDiscriminatorValue = true,
339-
EnableDerivedTypesReferencesForRequestBody = false,
340-
EnableDerivedTypesReferencesForResponses = false,
341-
ShowRootPath = false,
342-
ShowLinks = false,
343-
ExpandDerivedTypesNavigationProperties = false,
344-
EnableCount = true,
345-
UseSuccessStatusCodeRange = true,
346-
EnableTypeDisambiguationForDefaultValueOfOdataTypeProperty = true
347-
};
327+
var settings = new OpenApiConvertSettings();
348328
config.GetSection("OpenApiConvertSettings").Bind(settings);
349329

350330
OpenApiDocument document = edmModel.ConvertToOpenApi(settings);

0 commit comments

Comments
 (0)