diff --git a/src/ApiGenerator/Generator/CodeGenerator.cs b/src/ApiGenerator/Generator/CodeGenerator.cs index dd1a95c298..5353a932ea 100644 --- a/src/ApiGenerator/Generator/CodeGenerator.cs +++ b/src/ApiGenerator/Generator/CodeGenerator.cs @@ -40,7 +40,7 @@ public static class CodeGenerator public static string CatFormatPropertyGenerator(string type, string name, string key, string setter) => $"public {type} {name} {{ " + $" get => Q<{type}>(\"{key}\");{Environment.NewLine}" - + $" set {{ Q(\"{key}\", {setter}); SetAcceptHeader({setter}); }}" + + $" set {{ Q(\"{key}\", {setter});{Environment.NewLine}SetAcceptHeader({setter}); }}" + $"}}"; public static string PropertyGenerator(string type, string name, string key, string setter) => diff --git a/src/ApiGenerator/Views/GeneratorNotice.cshtml b/src/ApiGenerator/Views/GeneratorNotice.cshtml index 039524ceae..b26c307bd4 100644 --- a/src/ApiGenerator/Views/GeneratorNotice.cshtml +++ b/src/ApiGenerator/Views/GeneratorNotice.cshtml @@ -29,6 +29,7 @@ * under the License. */ } + // ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ // ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ diff --git a/src/ApiGenerator/Views/LowLevel/RequestParameters/RequestParameters.cshtml b/src/ApiGenerator/Views/LowLevel/RequestParameters/RequestParameters.cshtml index 110f7f51bc..a500088ce0 100644 --- a/src/ApiGenerator/Views/LowLevel/RequestParameters/RequestParameters.cshtml +++ b/src/ApiGenerator/Views/LowLevel/RequestParameters/RequestParameters.cshtml @@ -26,7 +26,8 @@ namespace OpenSearch.Net@(ns) var names = r.CsharpNames; /// Request options for @names.MethodName@Raw(r.OfficialDocumentationLink.IsNullOrEmpty() ? "" : " " + r.OfficialDocumentationLink + "") - public partial class @names.ParametersName : RequestParameters<@names.ParametersName> + public partial class @names.ParametersName + : RequestParameters<@names.ParametersName> { public override HttpMethod DefaultHttpMethod => HttpMethod.@r.HttpMethod; public override bool SupportsBody => @(supportsBody ? "true" : "false");