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
encoding/jsonschema: allow whole floats for unsigned numbers
JSON does not make a distinction between floats and ints,
and there are tests in the jsonschema test suite that check that
it's OK to use floating point literals in primitives that expect
an integer.
So accept whole floats anywhere we need a uint.
Relevant issue: #253.
Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I44632a6eadd2aeaff626b27ca6536d4aa47035aa
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200939
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Daniel Martí <[email protected]>
0 commit comments