Skip to content

Conversation

@luca-della-vedova
Copy link
Member

New feature implementation

Implemented feature

Alternative to #9.
Achieve nested models without changing the whole underlying library.

Implementation description

Implementation inspired by luminvent/yaserde#165 (comment), basically we add a layer of indirection to make sure that nested models are sized.
Created a Boxed<T> generic struct that we can use for items that use ref as their type (which turns out are just nested items).
Also added a simple roundtrip test for nested models

@luca-della-vedova luca-della-vedova marked this pull request as draft January 25, 2024 07:24
Signed-off-by: Luca Della Vedova <[email protected]>
@luca-della-vedova
Copy link
Member Author

It seems to work for SDF export in site editor 🤷‍♂️

@luca-della-vedova luca-della-vedova marked this pull request as ready for review January 31, 2024 03:21
Copy link
Member

@arjo129 arjo129 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@arjo129 arjo129 merged commit 2d20fe0 into main Jan 31, 2024
@luca-della-vedova luca-della-vedova deleted the luca/yaserde_nested_models branch July 3, 2025 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants