I faced with problem with swagger generation of generic type names. For example I have the following code:
public class BulkRequest<T1, T2>
{
public IEnumerable<Operation<T1, T2>> Operations { get; set; }
}
[ProducesResponseType(typeof(BulkRequest<ClassA, ClassB>), StatusCodes.Status200OK)]
And after Swagger generates some ugly names like: ClassAClassBBulkRequest and ClassAClassBOperation.
I don't want to change BulkRequest class because it used in multiple places in our system.
So do we have any way to generate readable class names with Swagger?