Due to https://github.com/stretchr/objx/pull/59 integer floats are converted to int, causing float check issues. One way to fix is to move float to int conversions to Int() accessor. This has the side effect of also fixing loss of precision. It also makes the implementation consistent with go's json unmarshal
Summary
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
fixes https://github.com/stretchr/objx/issues/101 fixes https://github.com/stretchr/objx/issues/99
Due to https://github.com/stretchr/objx/pull/59 integer floats are converted to int, causing float check issues. One way to fix is to move float to int conversions to
Int()
accessor. This has the side effect of also fixing loss of precision. It also makes the implementation consistent with go's json unmarshalSummary
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
task test
task lint