Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 386 Bytes

File metadata and controls

12 lines (10 loc) · 386 Bytes

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<>));
            }):