Forum Discussion

delucaezequiel's avatar
delucaezequiel
New Contributor
4 years ago

XML Parameter not showing

Hi:

 

I am trying to add some query parameters and I can't hit the point. I am using Visual Studio 2019, so xml notations are in place. What I am stating in order to add a parameter is:

/// <param name="id" in="query">description</param>

This throws the following warning: CS1572 C# XML comment has a param tag for 'id', but there is no parameter by that name

The parameter is never displayed in swagger/OpenApi. One thing that I notice is that only the parameters added on the HttpGet Header are added ex: [HttpGet("{id}")] but it ignores everything on the xml

Do you know what can be happening? Is there another way to set the query parameters?

No RepliesBe the first to reply