summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/public_api/v4/user/public.json
blob: 5587cfec61ac0acf4e1c8b74dcd1e03192e64239 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
  "type": "object",
  "required": [
    "id",
    "username",
    "email",
    "name",
    "state",
    "avatar_url",
    "web_url",
    "created_at",
    "is_admin",
    "bio",
    "location",
    "skype",
    "linkedin",
    "twitter",
    "website_url",
    "organization",
    "last_sign_in_at",
    "confirmed_at",
    "color_scheme_id",
    "projects_limit",
    "current_sign_in_at",
    "identities",
    "can_create_group",
    "can_create_project",
    "two_factor_enabled",
    "external"
  ],
  "properties": {
    "id": { "type": "integer" },
    "username": { "type": "string" },
    "email": {
      "type": "string",
      "pattern": "^[^@]+@[^@]+$"
    },
    "name": { "type": "string" },
    "state": {
      "type": "string",
      "enum": ["active", "blocked"]
    },
    "avatar_url": { "type": "string" },
    "web_url": { "type": "string" },
    "created_at": { "type": "date" },
    "is_admin": { "type": "boolean" },
    "bio": { "type": ["string", "null"] },
    "location": { "type": ["string", "null"] },
    "skype": { "type": "string" },
    "linkedin": { "type": "string" },
    "twitter": { "type": "string "},
    "website_url": { "type": "string" },
    "organization": { "type": ["string", "null"] },
    "last_sign_in_at": { "type": "date" },
    "confirmed_at": { "type": ["date", "null"] },
    "color_scheme_id": { "type": "integer" },
    "projects_limit": { "type": "integer" },
    "current_sign_in_at": { "type": "date" },
    "identities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": ["github", "bitbucket", "google_oauth2"]
          },
          "extern_uid": { "type": ["number", "string"] }
        }
      }
    },
    "can_create_group": { "type": "boolean" },
    "can_create_project": { "type": "boolean" },
    "two_factor_enabled": { "type": "boolean" },
    "external": { "type": "boolean" }
  }
}