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

Introduce 'treatNullAsMissing' flag #853

Merged
merged 4 commits into from
Jun 22, 2020
Merged

Introduce 'treatNullAsMissing' flag #853

merged 4 commits into from
Jun 22, 2020

Conversation

sandwwraith
Copy link
Member

Treat null literals in JSON as a missing value indicator, allowing parsing "x":null to a non-nullable x: Boolean = false

It also allows treating unknown enum values as missing ones, so this flag may need a better name; 'treatNullOrUnknownAsMissing' sounds long and cumbersome.

Closes #246 and #90 (only for json, though)

and implement it for streaming parser
fix error-prone test helper method

Fix legacyJsIr tests that can't use serializer<T>()
@qwwdfsad qwwdfsad merged commit 808da84 into dev Jun 22, 2020
@qwwdfsad qwwdfsad deleted the json_rollback branch June 22, 2020 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants