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

     1  -- schema.json --
     2  {
     3      "type": "array",
     4      "const": [
     5          1
     6      ]
     7  }
     8  -- out/decode/extract --
     9  [1]
    10  -- out/decode/testerr/err-1 --
    11  conflicting values 1 and [1] (mismatched types int and list):
    12      generated.cue:1:1
    13      test/err-1.json:1:1
    14  -- out/decode/testerr/err-2 --
    15  0: conflicting values 2 and 1:
    16      generated.cue:1:1
    17      generated.cue:1:2
    18      test/err-2.json:1:2
    19  -- test/exact.json --
    20  [1]
    21  -- test/err-1.json --
    22  1
    23  -- test/err-2.json --
    24  [2]