我正在将我所有的APIb格式文档都转换为openapi 3.0.0(使用yaml摇晃)。我无法确定如何定义一个特定的调用,因为json主体中有一个参数,该参数本质上是一个包含任意数量的自命名对象的对象。
{
"name": " My Landing Page",
"template_id": "ac895f01-3149-4bf8-a8fe-01d3b8a9ba97",
"parameters": {
"title": "This is a ${title}",
"bodyText": "This is some ${bodyText}",
"callToAction": "${ctaUrl}"
},
"fields": {
"title": {
"type": "string"
},
"bodyText": {
"type": "string"
},
"ctaUrl": {
"type": "string"
}
}
}
正如您在字段中看到的所有内容所看到的那样,您可以为标题选择任何名称,但必须具有类型。如何在Open api 3中定义它?