xref: /aosp_15_r20/external/json-schema-validator/src/test/resources/draft4/extra/property.json (revision 78c4dd6aa35290980cdcd1623a7e337e8d021c7c)
1[
2  {
3    "description": "id as schema",
4    "schema": {
5      "id": "http://localhost:1234/id_schema/schema/features.json",
6      "title": "property object",
7      "type": "object",
8      "properties": {
9        "featuresInteger": {
10          "$ref": "#/featuresInteger"
11        },
12        "featuresBoolean": {
13          "$ref": "#/featuresBoolean"
14        }
15      },
16      "additionalProperties": false
17    },
18    "tests": [
19      {
20        "description": "an integer is an integer",
21        "data": {
22          "featuresInteger": 4,
23          "featuresBoolean": true
24        },
25        "valid": true
26      },
27      {
28        "description": "a number is not an integer",
29        "data": {
30          "featuresInteger": 4.0,
31          "featuresBoolean": true
32        },
33        "valid": false
34      }
35    ]
36  }
37]