I you are using Swashbuckle you can customize it by providing a CustomSchemaIds:
services.AddSwaggerGen(options =>
{
// ...
options.CustomSchemaIds(type => "your convention here");
}
You can for example inspect the flag type.IsGenericType and decide what to return.