github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft3/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": { "type": "integer" }
     7              },
     8              "properties": {
     9                  "foo": {
    10                      "$ref": "#/definitions/int"
    11                  }
    12              },
    13              "extends": {
    14                  "additionalProperties": {
    15                      "$ref": "#/definitions/int"
    16                  }
    17              }
    18          },
    19          "tests": [
    20              {
    21                  "description": "passing case",
    22                  "data": { "foo": 1 },
    23                  "valid": true
    24              },
    25              {
    26                  "description": "failing case",
    27                  "data": { "foo": "a string" },
    28                  "valid": false
    29              }
    30          ]
    31      }
    32  ]