我正在尝试使用Swagger API描述以下用于API端点响应的数据结构。(Swagger描述如下所示)
但是,出现以下错误。
第If TypeOf (sender) Is VScrollBar Then
Dim scrollBar As VScrollBar = CType(sender, VScrollBar)
If TypeOf (scrollBar.Parent) Is KryptonExtendedGrid Then
Dim KryptonGrid As KryptonExtendedGrid = CType(scrollBar.Parent, KryptonExtendedGrid)
If KryptonGrid.ScrollControl IsNot Nothing Then
If scrollBar.Visible Then
grdForecast.ScrollBars = ScrollBars.None
scrollBar.Visible = False
scrollBar.Hide()
KryptonGrid.ScrollControl.DownButton.Enabled = True
Else
KryptonGrid.ScrollControl.DownButton.Enabled = False
End If
End If
End If
End If
行应为对象。
我可以知道怎么了吗?
API的实际回报
- smallpower
Swagger API规范
{
"smallpower": [
{
"A": "A",
"B": 11.9,
"C": true,
"D": "D"
},
{
"A": "A",
"B": 11.9,
"C": true,
"D": "D"
},
],
"oa": [
{
"A": "A",
"B": 11.9,
"C": true,
"D": "D"
},
{
"A": "A",
"B": 11.9,
"C": true,
"D": "D"
},
],
"light": [
{
"A": "A",
"B": 11.9,
"C": true,
"D": "D"
},
{
"A": "A",
"B": 11.9,
"C": true,
"D": "D"
},
]
}
答案 0 :(得分:1)
这是properties
的正确语法,其中每个属性是一个$ref
强化模式的数组:
properties:
smallpower:
type: array
items:
$ref: '#/components/schemas/SmallPower'
oa:
type: array
items:
$ref: '#/components/schemas/OA'
light:
type: array
items:
$ref: '#/components/schemas/light'