json-editor
json-editor copied to clipboard
A property getting the value of another property of the object in the Oneof array
{
"title":"xyz",
"type":"object",
"properties":{
"id":{
"type":"string"
},
"friend":{
"type":"string"
},
"Attributes":{
"type":"object",
"oneOf":[
{
"type":"object",
"title":"abc",
"properties":{
"name":{
"type":"string",
"default":"qrs"
},
"age":{
"type":"number"
}
}
}
]
}
}
}
In the above schema I want that the "friend" field should have the data from the "name" field in the array Oneof which is the drop down menu and can have many objects with common property "name". How can this be done in this schema?
See solved issue https://github.com/jdorn/json-editor/issues/305