cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/txtar/numericenum.txtar (about)

     1  # Test that we can use a "number" type constraint with a numeric enum.
     2  # See issue #3173.
     3  
     4  -- schema.json --
     5  {
     6      "type": "number",
     7      "enum": [ 1, 2, 3]
     8  }
     9  -- out/decode/extract --
    10  1 | 2 | 3