After I enable Generate a file containing API documentation in my .NET 6 web api project, I got a lot of compiler warnings. Actually, I only need XML comment for all my controllers type or member. But not the rest of the classes.
How do I disable or suppress the compiler warning?
I do not wish to use pragma directives which clutter the code readability.

