Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix codegen for unused unions #91

Merged
merged 2 commits into from
Oct 25, 2023
Merged

Conversation

johnstairs
Copy link
Member

@johnstairs johnstairs commented Oct 24, 2023

The NDJSON codegen would only generate serializers for unions that were used by a protocol. However, we generated serializers for all records, regardless of whether they were used by a protocol. So this would result in complication failures.

The fix is to generate converters for all unions in the model.

@johnstairs johnstairs merged commit f134576 into main Oct 25, 2023
14 checks passed
@johnstairs johnstairs deleted the johnstairs/fix-unused-union-codegen branch October 25, 2023 13:59
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.

2 participants