cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft7/definitions.json (about)

     1  [
     2  	{
     3  		"description": "validate definition against metaschema",
     4  		"schema": {
     5  			"$ref": "http://json-schema.org/draft-07/schema#"
     6  		},
     7  		"skip": {
     8  			"v2": "extract error: cannot compile resulting schema: package \"json-schema.org/draft-07/schema\" imported but not defined in :\n    generated.cue:1:8\n",
     9  			"v3": "extract error: cannot compile resulting schema: package \"json-schema.org/draft-07/schema\" imported but not defined in :\n    generated.cue:1:8\n"
    10  		},
    11  		"tests": [
    12  			{
    13  				"description": "valid definition schema",
    14  				"data": {
    15  					"definitions": {
    16  						"foo": {
    17  							"type": "integer"
    18  						}
    19  					}
    20  				},
    21  				"valid": true,
    22  				"skip": {
    23  					"v2": "could not compile schema",
    24  					"v3": "could not compile schema"
    25  				}
    26  			},
    27  			{
    28  				"description": "invalid definition schema",
    29  				"data": {
    30  					"definitions": {
    31  						"foo": {
    32  							"type": 1
    33  						}
    34  					}
    35  				},
    36  				"valid": false,
    37  				"skip": {
    38  					"v2": "could not compile schema",
    39  					"v3": "could not compile schema"
    40  				}
    41  			}
    42  		]
    43  	}
    44  ]