Skip to content

Lanz86/Swashbuckle-GenericTypeResponseFilter

Repository files navigation

Swashbuckle-GenericTypeResponseFilter

Declare Generic not buildable Swagger Response

If you have a generic not buildable type in response of api add in swagger configuration this filter with you generic concrate type example:

 services.AddSwaggerGen(c =>
            {
                c.OperationFilter<GenericTypeResponseFilter>(typeof(ApiResult<>));
            }):

About

Declare Generic not buildable Swagger Response

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages