You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When the maximum type is float64, using json.Unmarshal(raw, &spec.Swagger{}) will lose precision #201
@O3cheng yes you're correct: mapping numbers as float64 is not truly JSON compliant (in the sense there is no support for arbitrarily large numbers). On the other hand, we didn't want to manipulate a big.Rat type everywhere we had some numerical input. Trade off.
Activity
fredbi commentedon Mar 13, 2025
@O3cheng yes you're correct: mapping numbers as float64 is not truly JSON compliant (in the sense there is no support for arbitrarily large numbers). On the other hand, we didn't want to manipulate a
big.Rattype everywhere we had some numerical input. Trade off.