chore(tests): Add json.Unmarshal test with empty value cases#116
chore(tests): Add json.Unmarshal test with empty value cases#116noahdietz merged 4 commits intogoogle:masterfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
I'm new to this project but @bormanp is this ideal? My gut says that deserializing a JSON blob that omits a Edit: I guess omitempty is for serialization not deserialization, so it's not a distinction for |
I've added some test cases in JSON for documentation purposes.
Only
"00000000-0000-0000-0000-000000000000"andnullvalues are parsed without errors. Empty strings (even withomitemptytag) are parsed with the errorinvalid UUID length.