I was trying to add custom fields to content fragment models. I wanted to keep image data as node below to have following schema /content/dam/my-model/image and there will be a list of props related to this image.
I added the new editor type in /apps/settings/dam/cfm/models/formbuilderconfig/datatypes/items/image
Moreover I created my custom property definition basing on /libs/dam/cfm/models/editor/components/datatypeproperties/maptopropertyfield and removed "field-propertyName-validator" to bypass the name of the field validation (/ was not allowed to use)
After that I wanted to create example model but in the result I got the error:
It looks that AEM tries to add lastModified property for each field and if fails on more sophisticated data structure.
Does it mean that content fragment was designed only to keep flat models and I am heading in wrong direction?
What should I use to model the composite data structure?