Hello,
I am trying to make a post request. This is the body
[
{
"type": "CustodyResponse",
"children": [
{
"dataObject": {
"type": "CustodyTask",
"assetId": "test"
},
"children": []
}
]
}
]
This is the metadataTemplate defining the parent/child relationship
<template name="AssetTemplate">
...
<node type="PlanResponse" includeConcreteSubTypes="true">
<node type="AbstractTask" includeConcreteSubTypes="true" />
</node>
</template>
PlanResponse and AbstractTask are abstract.
<type type="CustodyResponse" edition="1" extends="PlanResponse-1"/>
<type type="CustodyTask" edition="1" extends="AbstractTask-1">
<StringField propName="assetId"
shortName="Asset ID"
defaultListed="true"
defaultLayoutIndex="1" />
</type>
I receive a 500 with this message. I’m not certain how to fill out the typeInfo map. Any suggestions? Thanks
"message": "Field (children) with unknown type present in JSON. Type info must be supplied in the typeInfo map, or a Global MetadataService must be registered with LeafPlugins that contains the BeanMetadata for the given DataObject type. (through reference chain: java.util.ArrayList[0])"