Skip to content

Commit c528ccf

Browse files
remove extra comments.
1 parent 124ec1a commit c528ccf

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

src/Web/Api/DependencyInjection.cs

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public static IServiceCollection AddSwaggerOptions(this IServiceCollection servi
148148
Id = "Bearer"
149149
}
150150
},
151-
new string[] {}
151+
Array.Empty<string>()
152152
}
153153
});
154154

@@ -170,44 +170,16 @@ public static IServiceCollection AddSwaggerOptions(this IServiceCollection servi
170170
});
171171
#endregion
172172

173-
//options.AddSecurityDefinition("Bearer", new OpenApiSecurityScheme
174-
//{
175-
// Description = "JWT Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\"",
176-
// Name = "Authorization",
177-
// In = ParameterLocation.Header,
178-
// Type = SecuritySchemeType.ApiKey,
179-
// Scheme = "Bearer"
180-
//});
181-
182173
//If use FluentValidation then must be use this package to show validation in swagger (MicroElements.Swashbuckle.FluentValidation)
183174
//options.AddFluentValidationRules();
184175
#endregion
185176
});
186177

187-
//services.AddSwaggerGen(c =>
188-
//{
189-
// c.SwaggerDoc("v1", new OpenApiInfo
190-
// {
191-
// Version = "v1",
192-
// Title = "CleanTemplate.WebUI",
193-
// Description = "This is a solution template for Clean Architecture implementation with ASP.NET Core Web Api",
194-
// Contact = new OpenApiContact
195-
// {
196-
// Name = "Omid Ahmadpour",
197-
// Email = "ahmadpooromid@gmail.com",
198-
// Url = new Uri("https://github.com/omidah"),
199-
// },
200-
// });
201-
//});
202-
203178
return services;
204179
}
205180

206181
public static IApplicationBuilder UseAppSwagger(this IApplicationBuilder app, IConfiguration configuration)
207182
{
208-
//app.UseSwagger();
209-
//app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "CleanTemplate.WebUI v1"));
210-
211183
app.UseSwagger();
212184

213185
//Swagger middleware for generate UI from swagger.json

0 commit comments

Comments
 (0)