Skip to content

Implement Support for Dynamic/Abstract Types #276

Merged
Bergmann89 merged 3 commits into
masterfrom
issue-275
Jun 22, 2026
Merged

Implement Support for Dynamic/Abstract Types #276
Bergmann89 merged 3 commits into
masterfrom
issue-275

Conversation

@Bergmann89

Copy link
Copy Markdown
Owner

Releated to #275

The old implementation did only handle substitution groups correctly. If
on would like to use dynamic types in combination with substitution groups,
the generated code would be incorrect. This commit fixes that issue, by
implementing proper support for dynamic types and substitution groups.
Suitable tests have been added to cover the new functionality.
Types defined by the user using `CustomMeta` type variant may want to execute
additional code, once the type is executed by the generator. This commits
adds a new `CustomGenerator` trait that can be added to the `CustomMeta`
and is executed by the generator when the type is executed. This allows users
to instruct the generator to generate other dependent types, use the generator
context to resolve type paths or to just execute any kind of custom code.
@Bergmann89 Bergmann89 merged commit 445407c into master Jun 22, 2026
2 checks passed
@Bergmann89 Bergmann89 deleted the issue-275 branch June 22, 2026 19:10
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.

1 participant