我正在尝试找出如何根据OpenAPI 3.0规范对以下对象进行建模
{
"data": {
"7or5g1ld2dk7blcdovu272uba1": [
{
"n_id": "e28a39df-d084-486d-8667-48a79affbe01"
},
{
"n_id": "e28a39df-d084-486d-4432-48a79affbe01"
}
]
}
}
我认为这是类似的事情,但不是键id
,它应该是id的值。
aai_create_request:
properties:
data:
description: The data object.
type: object
properties:
id:
description: The id of the AAI
type: array
items:
type: object
properties:
n_id:
description: The unique id of the node to be shared
type: string
example: 7af7fdbc-a925-4334-8dbf-a8e53fba9d9f
我怎么表示呢?