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


None yet
2 participants

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 self-assigned this Dec 21, 2017

@dahlia dahlia requested a review from kanghyojun Dec 21, 2017

@dahlia dahlia merged commit 308f8b4 into nirum-lang:master Dec 21, 2017

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