github.com/kaptinlin/jsonschema@v0.4.6/testdata/JSON-Schema-Test-Suite/tests/draft2019-09/optional/refOfUnknownKeyword.json (about)

     1  [
     2      {
     3          "description": "reference of a root arbitrary keyword ",
     4          "schema": {
     5              "$schema": "https://json-schema.org/draft/2019-09/schema",
     6              "unknown-keyword": {"type": "integer"},
     7              "properties": {
     8                  "bar": {"$ref": "#/unknown-keyword"}
     9              }
    10          },
    11          "tests": [
    12              {
    13                  "description": "match",
    14                  "data": {"bar": 3},
    15                  "valid": true
    16              },
    17              {
    18                  "description": "mismatch",
    19                  "data": {"bar": true},
    20                  "valid": false
    21              }
    22          ]
    23      },
    24      {
    25          "description": "reference of an arbitrary keyword of a sub-schema",
    26          "schema": {
    27              "$schema": "https://json-schema.org/draft/2019-09/schema",
    28              "properties": {
    29                  "foo": {"unknown-keyword": {"type": "integer"}},
    30                  "bar": {"$ref": "#/properties/foo/unknown-keyword"}
    31              }
    32          },
    33          "tests": [
    34              {
    35                  "description": "match",
    36                  "data": {"bar": 3},
    37                  "valid": true
    38              },
    39              {
    40                  "description": "mismatch",
    41                  "data": {"bar": true},
    42                  "valid": false
    43              }
    44          ]
    45      },
    46      {
    47          "description": "reference internals of known non-applicator",
    48          "schema": {
    49              "$schema": "https://json-schema.org/draft/2019-09/schema",
    50              "$id": "/base",
    51              "examples": [
    52                { "type": "string" }
    53              ],
    54              "$ref": "#/examples/0"
    55          },
    56          "tests": [
    57              {
    58                  "description": "match",
    59                  "data": "a string",
    60                  "valid": true
    61              },
    62              {
    63                  "description": "mismatch",
    64                  "data": 42,
    65                  "valid": false
    66              }
    67          ]
    68      }
    69  ]