cuelang.org/go@v0.10.1/encoding/jsonschema/testdata/numericenum.txtar (about) 1 # Test that we can use a "number" type constraint with a numeric enum. 2 # See issue #3173. 3 4 # TODO fix this so it works. 5 6 -- type.json -- 7 { 8 "type": "number", 9 "enum": [ 1, 2, 3] 10 } 11 -- out/decode/cue -- 12 1 | 2 | 3