Skip to content

Commit 77f24a4

Browse files
authored
[C#][netcore] replace tabs with 4-space (#7456)
* replace tab with 4-space * add space after if
1 parent 5675d5f commit 77f24a4

File tree

13 files changed

+2282
-2294
lines changed

13 files changed

+2282
-2294
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.openapitools.codegen.*;
2424
import org.openapitools.codegen.meta.features.*;
2525
import org.openapitools.codegen.utils.ModelUtils;
26+
import org.openapitools.codegen.utils.ProcessUtils;
2627
import org.slf4j.Logger;
2728
import org.slf4j.LoggerFactory;
2829

@@ -610,7 +611,9 @@ public void processOpts() {
610611
supportingFiles.add(new SupportingFile("OpenAPIDateConverter.mustache", clientPackageDir, "OpenAPIDateConverter.cs"));
611612
supportingFiles.add(new SupportingFile("ClientUtils.mustache", clientPackageDir, "ClientUtils.cs"));
612613
supportingFiles.add(new SupportingFile("HttpMethod.mustache", clientPackageDir, "HttpMethod.cs"));
613-
supportingFiles.add(new SupportingFile("HTTPSigningConfiguration.mustache",clientPackageDir,"HTTPSigningConfiguration.cs"));
614+
if (ProcessUtils.hasHttpSignatureMethods(openAPI)) {
615+
supportingFiles.add(new SupportingFile("HTTPSigningConfiguration.mustache", clientPackageDir, "HTTPSigningConfiguration.cs"));
616+
}
614617
if (supportsAsync) {
615618
supportingFiles.add(new SupportingFile("IAsynchronousClient.mustache", clientPackageDir, "IAsynchronousClient.cs"));
616619
}

modules/openapi-generator/src/main/resources/csharp-netcore/Configuration.mustache

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ namespace {{packageName}}.Client
9494
{{/servers.0}}
9595

9696
/// <summary>
97-
/// HTTPSigning configuration
98-
/// </summary>
99-
private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
97+
/// HTTPSigning configuration
98+
/// </summary>
99+
private HTTPSigningConfiguration _HTTPSigningConfiguration = null;
100100
#endregion Private Members
101101

102102
#region Constructors
@@ -469,13 +469,13 @@ namespace {{packageName}}.Client
469469
{{/servers.0}}
470470

471471
/// <summary>
472-
/// Gets and Sets the HTTPSigningConfiuration
473-
/// </summary>
474-
public HTTPSigningConfiguration HTTPSigningConfiguration
475-
{
476-
get { return _HTTPSigningConfiguration; }
477-
set { _HTTPSigningConfiguration = value; }
478-
}
472+
/// Gets and Sets the HTTPSigningConfiuration
473+
/// </summary>
474+
public HTTPSigningConfiguration HTTPSigningConfiguration
475+
{
476+
get { return _HTTPSigningConfiguration; }
477+
set { _HTTPSigningConfiguration = value; }
478+
}
479479

480480
#endregion Properties
481481

0 commit comments

Comments
 (0)