我正在大张旗鼓地开发一个api,并希望成功的响应如下:
这是我试图通过在BankTransactionCode下添加代码和subCode作为属性来实现这一目标的方法
"responses" : {
"200" : {
"description" : "response description",
"schema" : {
"type" : "object",
"properties" : {
"amount" : {
"type" : "string",
"maxLength" : 25
},
"accountIBAN" : {
"type" : "string"
},
"valueDate" : {
"type" : "string",
"format" : "date"
},
**"BankTransactionCode": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 60
},
"subCode": {
"type": "string",
"maxLength": 60
}**
}
}
不幸的是,有些事情是不对的,谁能说出原因吗?