xref: /aosp_15_r20/external/json-schema-validator/src/test/resources/draft7/issue590.json (revision 78c4dd6aa35290980cdcd1623a7e337e8d021c7c)
1[
2  {
3    "description": "issue590",
4    "schema": {
5      "$schema": "http://json-schema.org/draft-07/schema#",
6      "type": "object",
7      "required": [
8        "id"
9      ],
10      "properties": {
11        "id": {
12          "type": "string"
13        },
14        "attributes": {
15          "type": "object",
16          "properties": {
17            "createdAt": {
18              "type": "string",
19              "format": "date-time"
20            },
21            "disabled": {
22              "type": "boolean"
23            },
24            "email": {
25              "type": "string"
26            },
27            "handle": {
28              "type": "string"
29            },
30            "icon": {
31              "type": "string"
32            },
33            "modifiedAt": {
34              "type": "string",
35              "format": "date-time"
36            },
37            "name": {
38              "type": "string"
39            },
40            "serviceAccount": {
41              "type": "boolean"
42            },
43            "status": {
44              "type": "string"
45            },
46            "title": {
47              "type": "string"
48            },
49            "verified": {
50              "type": "boolean"
51            }
52          }
53        },
54        "relationships": {
55          "type": "object",
56          "properties": {
57            "org": {
58              "type": "object",
59              "required": [
60                "data"
61              ],
62              "properties": {
63                "data": {
64                  "type": "object",
65                  "required": [
66                    "id"
67                  ],
68                  "properties": {
69                    "id": {
70                      "type": "string"
71                    }
72                  }
73                }
74              }
75            }
76          }
77        }
78      }
79    },
80    "tests": [
81      {
82        "description": "should parse",
83        "data": { "id": "an id" },
84        "valid": true
85      }
86    ]
87  }
88]