Swashbuckle复杂对象

时间:2016-03-23 22:48:29

标签: c# user-interface swashbuckle

给定一个对象参数,例如:

public class XYZ {
      public List<ABC> listABC { get; set; }
}

public class ABC {
     public string A { get; set; }
     public string B { get; set; }
     public string C { get; set; }
}

我知道可以让Swashbuckle在UI中显示XYZ.listABC,然后如果在参数前使用[FromUri(Name =“XYZ”)],则在文本框中输入列表。

有没有办法在UI中公开列表对象ABC而不是XYZ.listABC的通用文本框?

0 个答案:

没有答案
相关问题