我有以下一系列物品:
myFunc(arrOfArr, 2);
我正在努力使用YAML在Swagger的OpenApi3中作为示例进行介绍。 我尝试过:
[
1590340491.05,
95,
[1, 0, -0.01, 0.09, 0.98, 0.17, 0.01, 0, 0.98, 0.17, 0.02, 0, 1, 0, 0.04, -0.08, 0.98, 0.17, -0.05, 0, 1, 0, 0, 0],
[0, 1, 1, 0, 0, 0, 0],
["9-1-2-1"]
]
但是最终显示如下:
GraphData:
type: array
items:
anyOf:
- type: number
- type: array
items:
type: number
- type: array
items:
type: string
minItems: 5
example: [ 1590340491.05, 95, [1, 0, -0.01, 0.09, 0.98, 0.17, 0.01, 0, 0.98, 0.17, 0.02, 0, 1, 0, 0.04, -0.08, 0.98, 0.17, -0.05, 0, 1, 0, 0, 0], [0, 1, 1, 0, 0, 0, 0], ["9-1-2-1"] ]