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

     1  -- schema.json --
     2  {
     3  	"oneOf": [
     4  		{
     5  			"type": "object"
     6  		},
     7  		{
     8  			"maxLength": 3,
     9  			"type": "string"
    10  		}
    11  	],
    12  	"patternProperties": {
    13  		"^x-": {
    14  			"type": "string"
    15  		}
    16  	}
    17  }
    18  -- out/decode/extract --
    19  import "strings"
    20  
    21  matchN(1, [{
    22  	...
    23  }, strings.MaxRunes(
    24  	3)]) & (string | {
    25  	{[=~"^x-"]: string}
    26  	...
    27  })