How to suppress some compiler some warnings after enable swagger to generate a file containing API documentation

Viewed 40

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.

enter image description here

How do I disable or suppress the compiler warning?

I do not wish to use pragma directives which clutter the code readability.

1 Answers
Related