Skip to content

Fix issues with advanced enums#243

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

Fix issues with advanced enums#243
Bergmann89 merged 3 commits intomasterfrom
issue-217

Conversation

@Bergmann89
Copy link
Owner

Related to #217

The name of the enum variant and the generated constant value may conflict
in some cases. To solve this we prefixed the constants with `VALUE_`.
When using a custom type as base type for a extension or restriction of a simple type,
the custom base type is now copied as reference to the original type instead of cloning
it. Custom types can not be restricted any further so this special case needs to be
handled in this way.
Simple types with a restriction used the wrong base type reference
(extension instead of restriction) when interpreting the schemas.
This resulted only in some incorrectly optimized types, but still
needed to be fixed.
@Bergmann89 Bergmann89 merged commit 9d9e4ea into master Feb 24, 2026
2 checks passed
@Bergmann89 Bergmann89 deleted the issue-217 branch February 24, 2026 19:47
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