swagger editor中定义数组回复不显示内容
发布于 6 年前 作者 bruceforlearn 1673 次浏览 来自 问答

各位大神好, 这是我写的定义,我想访问一个API返回一组数组,如下 definitions: DeviceArray: type: array items: type: string example: - {“DeviceID”: 103609131103,“NetworkName”: “nzp-20007-gnd-rt-01”,“RelativeName”: “NZP-20007-GND-RT-01.PST.SYTECNMS.NET”,“Type”: null} - {“DeviceID”: 105621398103,“NetworkName”: “nzp-20007-gnd-as-01”,“RelativeName”: “NZP-20007-GND-AS-01.PST.SYTECNMS.NET”,“Type”: null} - {“DeviceID”: 122403148102,“NetworkName”: null,“RelativeName”: “BEAS/U_NTU_001”,“Type”: “NTU”} - {“DeviceID”: 165002297102,“NetworkName”: null,“RelativeName”: “BEAS/G_HSNS SDP_001”,“Type”: “Alcatel MSAP”} - {“DeviceID”: 165002320102,“NetworkName”: “10.6.194.126”,“RelativeName”: “BEAS/G_ONEA1424X_001”,“Type”: “OneAccess IAD/Router”} - {“DeviceID”: 160885080102,“NetworkName”: null,“RelativeName”: “BEAS/U_CISCO_1921_001”,“Type”: “Cisco Packet Switch”} 但是返回的却是: [ "" ] 有不有大神解答一下疑惑

谢谢

回到顶部