0
包版本6.0.0-beta902Swashbuckle揚鞭UI不顯示參數描述
例子:
public class TestModel
{
/// <summary>
/// This is description of Name
/// </summary>
public string Name { get; set; }
}
public IActionResult HelloWorld(TestModel model)
{
return Content("hello " + model.Name);
}
爲什麼揚鞭UI不顯示名稱參數說明?
我確認,我所有的xml文件都包含在內。 Swagger顯示我的模型屬性的評論。但參數說明中沒有任何內容。 –
您可以將您的項目添加到GitHub並在此處發佈鏈接? – HelderSepu
我剛剛嘗試過這個完全相同的版本,它適用於我: https://github.com/heldersepu/csharp-proj/commit/d5043caadf787d409dfa7b00165454c5e3823f3b – HelderSepu