cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft7/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  			"definitions": {
     6  				"int": {
     7  					"type": "integer"
     8  				}
     9  			},
    10  			"allOf": [
    11  				{
    12  					"properties": {
    13  						"foo": {
    14  							"$ref": "#/definitions/int"
    15  						}
    16  					}
    17  				},
    18  				{
    19  					"additionalProperties": {
    20  						"$ref": "#/definitions/int"
    21  					}
    22  				}
    23  			]
    24  		},
    25  		"tests": [
    26  			{
    27  				"description": "passing case",
    28  				"data": {
    29  					"foo": 1
    30  				},
    31  				"valid": true
    32  			},
    33  			{
    34  				"description": "failing case",
    35  				"data": {
    36  					"foo": "a string"
    37  				},
    38  				"valid": false
    39  			}
    40  		]
    41  	}
    42  ]