kgiszewski / ArchetypeManual

15 stars 8 forks source link

Document Serializing Nested Archetypes #2

Open Nicholas-Westby opened 8 years ago

Nicholas-Westby commented 8 years ago

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).

kgiszewski commented 8 years ago

Absolutely if you are up for it :)

Nicholas-Westby commented 8 years ago

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.).