cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft6/optional/unknownKeyword.json (about)

     1  [
     2  	{
     3  		"description": "$id inside an unknown keyword is not a real identifier",
     4  		"comment": "the implementation must not be confused by an $id in locations we do not know how to parse",
     5  		"schema": {
     6  			"definitions": {
     7  				"id_in_unknown0": {
     8  					"not": {
     9  						"array_of_schemas": [
    10  							{
    11  								"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
    12  								"type": "null"
    13  							}
    14  						]
    15  					}
    16  				},
    17  				"real_id_in_schema": {
    18  					"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
    19  					"type": "string"
    20  				},
    21  				"id_in_unknown1": {
    22  					"not": {
    23  						"object_of_schemas": {
    24  							"foo": {
    25  								"$id": "https://localhost:1234/unknownKeyword/my_identifier.json",
    26  								"type": "integer"
    27  							}
    28  						}
    29  					}
    30  				}
    31  			},
    32  			"anyOf": [
    33  				{
    34  					"$ref": "#/definitions/id_in_unknown0"
    35  				},
    36  				{
    37  					"$ref": "#/definitions/id_in_unknown1"
    38  				},
    39  				{
    40  					"$ref": "https://localhost:1234/unknownKeyword/my_identifier.json"
    41  				}
    42  			]
    43  		},
    44  		"tests": [
    45  			{
    46  				"description": "type matches second anyOf, which has a real schema in it",
    47  				"data": "a string",
    48  				"valid": true
    49  			},
    50  			{
    51  				"description": "type matches non-schema in first anyOf",
    52  				"data": null,
    53  				"valid": false
    54  			},
    55  			{
    56  				"description": "type matches non-schema in third anyOf",
    57  				"data": 1,
    58  				"valid": false
    59  			}
    60  		]
    61  	}
    62  ]