Skip to content

Commit 095019a

Browse files
authored
replace tabs with 4-space (#8757)
1 parent d19bfeb commit 095019a

7 files changed

Lines changed: 20 additions & 18 deletions

File tree

modules/openapi-generator/src/main/resources/aspnetcore/2.1/Startup.mustache

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,14 @@ namespace {{packageName}}
123123
124124
//TODO: Or alternatively use the original Swagger contract that's included in the static files
125125
// c.SwaggerEndpoint("/openapi-original.json", "{{#appName}}{{{appName}}}{{/appName}}{{^appName}}{{packageName}}{{/appName}} Original");
126-
}){{/useSwashbuckle}};{{^useDefaultRouting}}
126+
}){{/useSwashbuckle}};
127+
{{^useDefaultRouting}}
127128
app.UseRouting();
128129
app.UseEndpoints(endpoints =>
129-
{
130-
endpoints.MapControllers();
131-
});{{/useDefaultRouting}}
130+
{
131+
endpoints.MapControllers();
132+
});
133+
{{/useDefaultRouting}}
132134
133135
if (env.IsDevelopment())
134136
{

modules/openapi-generator/src/main/resources/aspnetcore/2.1/controller.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace {{apiPackage}}
4949
public {{operationModifier}} {{#operationResultTask}}{{#operationIsAsync}}async {{/operationIsAsync}}Task<{{/operationResultTask}}IActionResult{{#operationResultTask}}>{{/operationResultTask}} {{operationId}}({{#allParams}}{{>pathParam}}{{>queryParam}}{{>bodyParam}}{{>formParam}}{{>headerParam}}{{^-last}}{{^isCookieParam}}, {{/isCookieParam}}{{/-last}}{{/allParams}}){{^generateBody}};{{/generateBody}}
5050
{{#generateBody}}
5151
{
52-
{{#cookieParams}}
52+
{{#cookieParams}}
5353
var {{paramName}} = Request.Cookies["{{paramName}}"];
5454
{{/cookieParams}}
5555

modules/openapi-generator/src/main/resources/aspnetcore/3.0/Startup.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ namespace {{packageName}}
155155
}){{/useSwashbuckle}};
156156
app.UseRouting();
157157
app.UseEndpoints(endpoints =>
158-
{
159-
endpoints.MapControllers();
160-
});
158+
{
159+
endpoints.MapControllers();
160+
});
161161
}
162162
}
163163
}

modules/openapi-generator/src/main/resources/aspnetcore/3.0/controller.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace {{apiPackage}}
4949
public {{operationModifier}} {{#operationResultTask}}{{#operationIsAsync}}async {{/operationIsAsync}}Task<{{/operationResultTask}}IActionResult{{#operationResultTask}}>{{/operationResultTask}} {{operationId}}({{#allParams}}{{>pathParam}}{{>queryParam}}{{>bodyParam}}{{>formParam}}{{>headerParam}}{{^-last}}{{^isCookieParam}}, {{/isCookieParam}}{{/-last}}{{/allParams}}){{^generateBody}};{{/generateBody}}
5050
{{#generateBody}}
5151
{
52-
{{#cookieParams}}
52+
{{#cookieParams}}
5353
var {{paramName}} = Request.Cookies["{{paramName}}"];
5454
{{/cookieParams}}
5555

samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
143143
});
144144
app.UseRouting();
145145
app.UseEndpoints(endpoints =>
146-
{
147-
endpoints.MapControllers();
148-
});
146+
{
147+
endpoints.MapControllers();
148+
});
149149
}
150150
}
151151
}

samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
143143
});
144144
app.UseRouting();
145145
app.UseEndpoints(endpoints =>
146-
{
147-
endpoints.MapControllers();
148-
});
146+
{
147+
endpoints.MapControllers();
148+
});
149149
}
150150
}
151151
}

samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
143143
});
144144
app.UseRouting();
145145
app.UseEndpoints(endpoints =>
146-
{
147-
endpoints.MapControllers();
148-
});
146+
{
147+
endpoints.MapControllers();
148+
});
149149
}
150150
}
151151
}

0 commit comments

Comments
 (0)