You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this supposed to add suggestions for Status code 2xx with their return types?
It does not seem to add ProductResponseType(typeof(...), StatusCodes200OK))
E.g. when I modify the example to the version below, I would expect a suggestion to add the commented line again.
// GET api/contacts/{guid}
[HttpGet("{id}", Name = "GetById")]
// [ProducesResponseType(typeof(Contact), StatusCodes.Status200OK)] --> commented this line
public IActionResult Get(string id)
{
var contact = _contacts.Get(id);
if (contact == null)
{
return NotFound();
}
return Ok(contact);
}
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 41a1e05b-c19d-6933-92fc-4c100340504f
Version Independent ID: d72414f7-2c53-53a7-1def-428160792a90
Is this supposed to add suggestions for Status code 2xx with their return types?
It does not seem to add ProductResponseType(typeof(...), StatusCodes200OK))
E.g. when I modify the example to the version below, I would expect a suggestion to add the commented line again.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: