【发布时间】:2018-11-17 06:21:06
【问题描述】:
我读过以前的帖子。寻找一个条纹 OpenAPi3.0 模型。这是一个小片段。 应用类型是什么?它是递归引用自己吗? x-expansionResources 是供应商扩展。
"charge": {
"properties": {
"amount": {
"description": "A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) ",
"type": "integer"
},
"application": {
"anyOf": [
{
"maxLength": 5000,
"type": "string"
},
{
"$ref": "#/components/schemas/application"
}
],
"description": "ID of the Connect application that created the charge.",
"nullable": true,
"x-expansionResources": {
"oneOf": [
{
"$ref": "#/components/schemas/application"
}
]
}
},
...
【问题讨论】:
标签: openapi