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

     1  -- schema.json --
     2  {
     3      "oneOf": [
     4          {
     5              "type": "string",
     6              "enum": [
     7                  1,
     8                  2
     9              ]
    10          },
    11          {
    12              "type": "boolean"
    13          }
    14      ]
    15  }
    16  -- out/decode/extract --
    17  bool