ArchetypeManual icon indicating copy to clipboard operation
ArchetypeManual copied to clipboard

Document Serializing Nested Archetypes

Open Nicholas-Westby opened this issue 9 years ago • 2 comments

Would be good to cover how to serialize nested archetypes here: https://github.com/kgiszewski/ArchetypeManual/blob/master/06%20-%20Editing%20an%20Archetype%20in%20Code.md

For example, would be good to know what we should do when the nested Archetype has no fieldsets (e.g., serialize an Archetype with no fieldsets, serialize an Archetype with fieldsets set to an empty list, or a null value).

Nicholas-Westby avatar May 24 '16 00:05 Nicholas-Westby

Absolutely if you are up for it :)

kgiszewski avatar May 24 '16 10:05 kgiszewski

Will definitely do that once life settles down a bit (that pesky thing that gets in the way of programming). Creating the nested Archetype as a new instance of ArchetypeModel seemed to work... I'll have to try out the other variations too (e.g., null, empty list, etc.).

Nicholas-Westby avatar May 24 '16 15:05 Nicholas-Westby