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 optional types serializer to be null-safe #203

merged 1 commit into from Dec 21, 2017


Copy link

@dahlia dahlia commented Dec 21, 2017

This fixes a bug that PR #201 introduced.

When a record or a union tag has an optional field, the generated Python serializers had been able to unexpectedly crash if the field contains None.

See also the added test case.

@dahlia dahlia merged commit 308f8b4 into nirum-lang:master Dec 21, 2017
1 of 2 checks passed
1 of 2 checks passed
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants