cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft2019-09/infinite-loop-detection.json (about)

     1  [
     2  	{
     3  		"description": "evaluating the same schema location against the same data location twice is not a sign of an infinite loop",
     4  		"schema": {
     5  			"$schema": "https://json-schema.org/draft/2019-09/schema",
     6  			"$defs": {
     7  				"int": {
     8  					"type": "integer"
     9  				}
    10  			},
    11  			"allOf": [
    12  				{
    13  					"properties": {
    14  						"foo": {
    15  							"$ref": "#/$defs/int"
    16  						}
    17  					}
    18  				},
    19  				{
    20  					"additionalProperties": {
    21  						"$ref": "#/$defs/int"
    22  					}
    23  				}
    24  			]
    25  		},
    26  		"tests": [
    27  			{
    28  				"description": "passing case",
    29  				"data": {
    30  					"foo": 1
    31  				},
    32  				"valid": true
    33  			},
    34  			{
    35  				"description": "failing case",
    36  				"data": {
    37  					"foo": "a string"
    38  				},
    39  				"valid": false
    40  			}
    41  		]
    42  	}
    43  ]