cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/txtar/emptyobjinanyof.txtar (about) 1 -- schema.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/decode/extract -- 24 _ 25 26 // Specify a shell. 27 #shell: matchN(>=1, [string, "bash" | "sh" | "cmd" | "powershell"])