【发布时间】:2020-08-22 02:47:06
【问题描述】:
Json 示例:
{
"testResults": [
"begin",
[
"call step 1.1",
"call step 1.2"
],
[
"call step 2.1",
[
"call step 2.1.1",
[
"call step 2.1.1.1",
"call step 2.1.1.2"
],
[
"call step 2.1.2.1",
"call step 2.1.2.2"
],
"end call step 2.1.1"
]
],
"end"
]
}
Json 架构
TestResults:
type: array
items:
anyOf:
- type: string
- $ref: "#/components/schemas/TestResults"
我不确定给定的架构是否正确。通俗的说,TestResults 由任意字符串和它自己组成。
【问题讨论】: