github.com/solo-io/cue@v0.4.7/encoding/jsonschema/testdata/emptyanyof.txtar (about)

     1  -- emptyanyof.json --
     2  {
     3   "$defs": {
     4     "shell": {
     5        "description": "Specify a shell.",
     6        "type": "string",
     7        "anyOf": [
     8          {
     9          },
    10          {
    11            "enum": [
    12              "bash",
    13              "sh",
    14              "cmd",
    15              "powershell"
    16            ]
    17          }
    18        ]
    19     }
    20   }
    21  }
    22  
    23  -- out.cue --
    24  _
    25  
    26  #shell: (string | ("bash" | "sh" | "cmd" | "powershell")) & string