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

     1  // This test tests the conversion and ordering of $defs.
     2  
     3  -- schema.json --
     4  {
     5    "$schema": "http://json-schema.org/draft-07/schema#",
     6  
     7    "properties": {
     8      "value": {},
     9      "next": { "$ref": "#" }
    10    }
    11  }
    12  
    13  -- out/decode/extract --
    14  @jsonschema(schema="http://json-schema.org/draft-07/schema#")
    15  _schema
    16  _schema:
    17  
    18  	null | bool | number | string | [...] | {
    19  		value?: _
    20  		next?:  _schema
    21  		...
    22  	}