I want to reference specific field of second schema in first schema through $ref
keyword .
secondSchema.json
file:
{
"store":{
"book":[
{
"category":"A",
"author":"AAAAAA",
"title":"A Book",
"price":111
},
{
"category":"B",
"author":"BBBBBBB",
"title":"B Book",
"price":222
}
],
"Vehicle":{
"color":"red",
"price":9999999
}
},
"expensive":888
}
In first schema referencing the second schema like this:
$ref:'secondSchema.json#/store.book.category'
$ref:'secondSchema.json#/store.Vehicle.color'
I should be able to access exact nested element in second schema. How to achieve this?