1
輸入參考
{
"createResponse": {
"backResponse": {
"status": {
"code": "000",
"message": "success"
}
}
}
}
或
{
"updateResponse": {
"backResponse": {
"status": {
"code": "000",
"message": "success"
}
}
}
}
這是我的JSON模式:
{
"properties": {
"backResponse": {
"type": "object",
"additionalProperties": false,
"properties": {
"status": {
"type": "object",
"required": false,
"properties": {
"code": {
"type": "string",
"required": false
},
"message": {
"type": "string",
"required": false
}
}
}
}
}
},
"anyOf": [{
"additionalProperties": false,
"properties": {
"createResponse": {
"type": "object",
"properties": {
"$ref": "#/properties/backResponse"
}
}
}
}, {
"additionalProperties": false,
"properties": {
"updateResponse": {
"type": "object",
"properties": {
"$ref": "#/properties/backResponse"
}
}
}
}]
}
得到錯誤與這DataPower的意料之外值的屬性「$ REF」。預期值類型:'object'。得到:'「#/ properties/backResponse」...'。
錯了我是什麼做