Swashbuckle.AspNetCore.Filters

A bunch of useful filters for Swashbuckle.AspNetCore (by mattfrear)

Swashbuckle.AspNetCore.Filters Alternatives

Similar projects and alternatives to Swashbuckle.AspNetCore.Filters

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Swashbuckle.AspNetCore.Filters alternative or higher similarity.

Swashbuckle.AspNetCore.Filters reviews and mentions

Posts with mentions or reviews of Swashbuckle.AspNetCore.Filters. We have used some of these posts to build our list of alternatives and similar projects.
  • How to let openApi know field is required, without data attributes.
    1 project | /r/csharp | 4 Jan 2023
    BUT if you absolutely need to change the exposed Open API specification, assuming you are using Swashbuckle, look for operation/schema filters (here), you can modify all aspects of generated specification this way.
  • ASP.NET MVC Swashbuckle - Reusable XML Swagger comments?
    1 project | /r/csharp | 13 Jan 2022
    // Enable the default method attributes c.EnableAnnotations(); // Add the SwaggerResponseHeader attribute (look at a controller call that returns pagination info) c.OperationFilter(); // The following three lines define trigger generation of security info within the swagger.json // https://github.com/mattfrear/Swashbuckle.AspNetCore.Filters#security-requirements-filter c.OperationFilter(); c.OperationFilter(); c.AddSecurityDefinition("oath2", new OpenApiSecurityScheme() { Description = "Standard authorization using bearer scheme. Ex: \"bearer {token}\"", In = ParameterLocation.Header, Name = "Authorization", Type = SecuritySchemeType.ApiKey }); // Main app definition c.SwaggerDoc("v1", new OpenApiInfo { Title = "The awesome API", Version = "v1", Description = "The Awesome API V1" }); // Look at XML comments and pull summaries and examples into the swagger.json // Note: the csproj file must be edited to generate teh xml documentation files var xmlFiles = Directory.GetFiles(AppContext.BaseDirectory,"*.xml",SearchOption.TopDirectoryOnly).ToList(); xmlFiles.ForEach(xmlFile => c.IncludeXmlComments(xmlFile));

Stats

Basic Swashbuckle.AspNetCore.Filters repo stats
2
415
7.6
3 months ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com