Skip to content

Fix recursion bug#96

Merged
mikee47 merged 3 commits intodevelopfrom
fix/recursion-bug
Apr 2, 2026
Merged

Fix recursion bug#96
mikee47 merged 3 commits intodevelopfrom
fix/recursion-bug

Conversation

@mikee47
Copy link
Copy Markdown
Owner

@mikee47 mikee47 commented Apr 1, 2026

This PR fixes two bugs identified by issue #95:

Union members identified using oneof require a title option if defined directly, otherwise the object name is empty which is not valid. The logic used to catch this was incomplete and results either in a python recursion error if there are multiple such definitions, or invalid code being generated if only one such un-titled definition exists. Both situations are confusing, so an additional check has been added which catches this issue during code generation.

Generated classes may not be in the correct order, resulting in compilation errors such as 'struct not yet fully defined'. This was due to to a bug when sorting dependencies with nested definitions. Sample config pr96-recur.cfgdb added to test.

@mikee47 mikee47 merged commit feb9eb2 into develop Apr 2, 2026
18 checks passed
@mikee47 mikee47 deleted the fix/recursion-bug branch April 2, 2026 06:21
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