summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/group_link/group_link.json
blob: 3c2195df11ec19c9915d9cc2ce1fc796981f3882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  "type": "object",
  "required": [
    "id",
    "created_at",
    "expires_at",
    "access_level",
    "valid_roles",
    "can_update",
    "can_remove",
    "is_direct_member"
  ],
  "properties": {
    "id": { "type": "integer" },
    "created_at": { "type": "date-time" },
    "expires_at": { "type": ["date-time", "null"] },
    "access_level": {
      "type": "object",
      "required": ["integer_value", "string_value"],
      "properties": {
        "integer_value": { "type": "integer" },
        "string_value": { "type": "string" }
      },
      "additionalProperties": false
    },
    "valid_roles": { "type": "object" },
    "shared_with_group": {
      "type": "object",
      "required": ["id", "name", "full_name", "full_path", "avatar_url", "web_url"],
      "properties": {
        "id": { "type": "integer" },
        "name": { "type": "string" },
        "full_name": { "type": "string" },
        "full_path": { "type": "string" },
        "avatar_url": { "type": ["string", "null"] },
        "web_url": { "type": "string" }
      },
      "additionalProperties": false
    },
    "can_update": { "type": "boolean" },
    "can_remove": { "type": "boolean" },
    "is_direct_member": { "type": "boolean" }
  }
}