Skip to content

Implement support for advanced enum deserialization#241

Merged
Bergmann89 merged 3 commits intomasterfrom
issue-217
Feb 20, 2026
Merged

Implement support for advanced enum deserialization#241
Bergmann89 merged 3 commits intomasterfrom
issue-217

Conversation

@Bergmann89
Copy link
Owner

Related to #217

This was a leftover from the old naming schema of the data types.
The new approach now also differentiates between the generator and the
renderer stage, providing more flexibility and better separation of concerns
and reusability of already implemented functions in the generator and
render contexts.
In addition to the stages a new mode was introduced to differentiate between
literal, constant/compile-time, or normal/run-time value generation. This
is needed by the planed advanced enumerations feature.
Advanced enums will define suitable constants for each variant (if possible)
which is useful for deserialization and serialization. Instead of matching
a byte string literal directly, the base type of the enum is used to for
deserialization and is then compared to the constants defined for each variant.
This allows for more flexible deserialization because the base type
may implement additional checks or transformations on the input data.
@Bergmann89 Bergmann89 merged commit 006083c into master Feb 20, 2026
2 checks passed
@Bergmann89 Bergmann89 deleted the issue-217 branch February 20, 2026 12:09
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