@turivishal Can you please help me with this ? It is similar to the other problem you helped me with.
Dynamically filter fields which might even be nested in a document
Need to filter “title” and “description” from the documents. This is just at the first level, but i also need to solve it for the nested documents.
{
"myobject":{
"type":"object",
"properties":{
"ticketing":{
"type":"object",
"title":"Ticketing",
"description":"Ticketing",
"properties":{
"sth_history":{
"type":"array",
"title":"Season Ticket Holder Season History",
"description":"Season Ticket Holder Season History",
"items":{
"type":"object",
"properties":{
"season":{
"title":"Season: Season Ticket Holder",
"description":"Purchased any type of package between 10-81 games",
"type":"integer",
"meta:type":"int"
}
},
"meta:type":"object"
},
"meta:type":"array"
},
"stubhub_seller":{
"type":"object",
"title":"Ticketing Stubhub Seller",
"description":"Ticketing Stubhub Seller",
"properties":{
"season_sales":{
"type":"array",
"title":"Ticketing Stubhub Seller Season Sales",
"description":"Ticketing Stubhub Seller Season Sales",
"items":{
"type":"object",
"properties":{
"season":{
"title":"Season: Stubhub Seller",
"description":"Season: Stubhub Seller",
"type":"integer",
"meta:type":"int"
}
},
"meta:type":"object"
},
"meta:type":"array"
},
"games_sold_total":{
"title":"Total Stubhub Games Sold",
"description":"Total Stubhub Games Sold",
"type":"integer",
"meta:type":"int"
}
},
"meta:type":"object"
}
},
"meta:type":"object"
},
"shop":{
"type":"object",
"title":"Shop",
"description":"Shop",
"properties":{
"top_categories_current_season":{
"type":"array",
"title":"Top Shop Categories Current Season",
"description":"Top Shop Categories Current Season",
"items":{
"type":"object",
"properties":{
"merch_category":{
"title":"Top Shop Product Types Purchased This Season",
"description":"Top Shop Product Types Purchased This Season",
"type":"string",
"meta:type":"string"
},
"spend":{
"title":"Top Shop Product Types Spend Purchased This Season",
"description":"Top Shop Product Types Spend Purchased This Season",
"type":"number",
"meta:type":"number"
}
},
"meta:type":"object"
},
"meta:type":"array"
},
"top_categories_total":{
"type":"array",
"title":"Shop Top Categories Total",
"description":"Shop Top Categories Total",
"items":{
"type":"object",
"properties":{
"merch_category":{
"title":"Top 5 Shop Product Types Purchased Ever",
"description":"Top 5 Shop Product Types Purchased Ever",
"type":"string",
"meta:type":"string"
},
"spend":{
"title":"Top 5 Shop Product Types Spend Ever",
"description":"Top 5 Shop Product Types Spend Ever",
"type":"number",
"meta:type":"number"
}
},
"meta:type":"object"
},
"meta:type":"array"
}
},
"meta:type":"object"
}
},
"meta:type":"object"
}
}