summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/group_link/group_link.json
blob: 300790728a88f06df5a00cb4927f0252a4a6e439 (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
{
  "type": "object",
  "required": [
    "id",
    "created_at",
    "expires_at",
    "access_level",
    "valid_roles"
  ],
  "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
    }
  }
}