-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Throw for empty strings in primitive collection columns #32924
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure, but shouldn't we be throwing for an empty string, since it's invalid JSON?
You're right; I didn't realize the empty string was invalid JSON. |
967dc60
to
7c9e269
Compare
Updated to throw. |
<!-- | ||
Microsoft ResX Schema | ||
|
||
<!-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unrelated whitespace changes (I get this too all of the time)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's because the T4 that we generate from does not create code that conforms to our formatting, so whenever the file is opened in an editor, it changes from what was generated by T4.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I remove the changes (git checkout -p
) every time as well. It sucks.
Fixes #32896