Thanks @DMehaffy. I have both structure. Here is a sample schema for component under DZ
"attributes": {
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
]
},
"productCuratedFilterBoxSmall": {
"type": "component",
"repeatable": true,
"component": "clps-components.product-curated-filter-box-small",
"max": 2
},
}
Here DZ->component has the image field and there is another image field under product-curated-filter-box-small.