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

     1  -- schema.json --
     2  {
     3    "$schema": "http://json-schema.org/draft-07/schema#",
     4    "definitions": {
     5      "ref": {
     6        "properties": {
     7          "branches": {
     8            "type": "object"
     9          },
    10          "branches-ignore": {
    11            "type": "object"
    12          }
    13        },
    14        "oneOf": [
    15          {
    16            "type": "object",
    17            "allOf": [
    18              {
    19                "not": {
    20                  "type": "string"
    21                }
    22              }
    23            ]
    24          },
    25          {
    26            "type": "null"
    27          }
    28        ]
    29      }
    30    }
    31  }
    32  
    33  
    34  -- out/decode/extract --
    35  @jsonschema(schema="http://json-schema.org/draft-07/schema#")
    36  
    37  _
    38  
    39  #ref: matchN(1, [matchN(0, [string]) & {
    40  	...
    41  }, null]) & (null | {
    42  	branches?: {
    43  		...
    44  	}
    45  	"branches-ignore"?: {
    46  		...
    47  	}
    48  	...
    49  })