I have a json in the format:
"json": {
"schema": {
"type": "object",
"title": "My Table",
"properties": {
"table-1659555454697": {
"type": "array",
"items": {
"type": "object",
"properties": {
"inputTest": {
"type": "string"
},
"columnTwo": {
"type": "string"
}
},
"required": [
"inputTest",
"columnTwo"
]
}
}
},
},
I can obtain a reference to the "table-1659555454697" object with:
console.log(this.jsf.schema.properties);
What I'm struggling with is how to obtain a reference from that element's children to the "required" array's length. Assuming I cannot reference "table-1659555454697" by name since its dynamically generated.
I've tried:
console.log(this.jsf.schema.properties[0].items[0].required.length);
But I get undefined error