아래 나는 모든 옵션 태그 actionType 요소 값 ID가 "SAVECONTACT"JSON 스키마 요소 옵션은
내가 잘 모릅니다 만 진실해야 언급 종속성이 내 JSON 스키마
입니다 이러한 의존성을
을 구현하기 위해이
{
"type": "object",
"properties": {
"userId": {
"type": "string",
"optional": true
},
"groupId": {
"type": "string",
"optional": true
},
"socialMediaContacts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"smContactId": {
"type":"string"
},
"actionType": {
"type":"string",
"enum" : ["SAVECONTACT", "DELETECONTACT", "SAVEGROUP", "DELETEGROUP"]
},
"contactLastName": {
"type":"string",
"optional": true
},
"contactFirstName": {
"type":"string",
"optional": true
},
"nickName": {
"type":"string",
"optional": true
},
"contactType": {
"type":"string",
"enum" : ["SM", "REG"],
"optional": true
},
"mediaSource": {
"type":"string",
"enum" : ["FB", "FS", "TW"],
"optional": true
},
"socialMediaHandle": {
"type":"string",
"optional": true
},
"email": {
"type":"string",
"optional": true
},
"phone": {
"type":"string",
"optional": true
}
}
}
}
}
}