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/2020-12/schema",
6            "$defs": {
7                "int": { "type": "integer" }
8            },
9            "allOf": [
10                {
11                    "properties": {
12                        "foo": {
13                            "$ref": "#/$defs/int"
14                        }
15                    }
16                },
17                {
18                    "additionalProperties": {
19                        "$ref": "#/$defs/int"
20                    }
21                }
22            ]
23        },
24        "tests": [
25            {
26                "description": "passing case",
27                "data": { "foo": 1 },
28                "valid": true
29            },
30            {
31                "description": "failing case",
32                "data": { "foo": "a string" },
33                "valid": false
34            }
35        ]
36    }
37]
38