Hello Community,
I would like to define a custom JET component and define an array of object-properties as a sub-property of this component. Example data:
{
columns: [
{id: 1, description: "First column"},
{id: 2, description: "Second column"},
]
}
I'm having trouble translating this into the component.json format. The following does not seem to work:
{
...
"properties": {
"columns": {
"type": "Array",
"properties": {
"id": {...}
"description": {...}
}
}
}
...
}
I've also tried wrapping everything in the array in a "value" property:
{
...
"properties": {
"columns": {
"type": "Array",
"properties": {
"value": {
"type": "Object",
"properties": {
"id": {...}
"description": {...}
}
}
}
}
}
...
}
Any way I can define this structure compliant with the OJET metadata definitions? https://www.oracle.com/webfolder/technetwork/jet/jsdocs/MetadataTypes.html#ComponentMetadataProperties does not seem to cover this case in depth.
Any help would be much appreciated.
Kind Regards,
Philip
P.S.: I'm running JET 8.0.0.