Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfix unmarshal to map doesn't report error with null key #401
Conversation
Codecov Report
@@ Coverage Diff @@
## master #401 +/- ##
==========================================
- Coverage 81.81% 81.53% -0.29%
==========================================
Files 41 41
Lines 5022 5026 +4
==========================================
- Hits 4109 4098 -11
- Misses 792 807 +15
Partials 121 121
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #401 +/- ##
==========================================
- Coverage 81.81% 81.77% -0.05%
==========================================
Files 41 41
Lines 5022 5026 +4
==========================================
+ Hits 4109 4110 +1
- Misses 792 795 +3
Partials 121 121
Continue to review full report at Codecov.
|
|
should fix this problem by change "decoderOfMapKey", as other map key decoder can detect the problem. |
|
JSON keys are strings by the standard, I think |
Change aimed to fix unmarshaling json with
nullkey tomap[string]interface{}not reporting error.Standard library handles this case properly reporting error