json-editor icon indicating copy to clipboard operation
json-editor copied to clipboard

A property getting the value of another property of the object in the Oneof array

Open akshitjain opened this issue 10 years ago • 1 comments

{
"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?

akshitjain avatar Jul 09 '15 11:07 akshitjain

See solved issue https://github.com/jdorn/json-editor/issues/305

JWDobken avatar Oct 23 '17 12:10 JWDobken