summaryrefslogtreecommitdiff
path: root/spec/fixtures/api/schemas/public_api/v4/user/public.json
blob: 53d67e041a1baa71817ea2ffbfad790ae5bffd05 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
  "type": "object",
  "required": [
    "id",
    "username",
    "email",
    "name",
    "state",
    "avatar_url",
    "web_url",
    "created_at",
    "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",
        "null"
      ]
    },
    "web_url": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "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": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "confirmed_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "color_scheme_id": {
      "type": "integer"
    },
    "projects_limit": {
      "type": "integer"
    },
    "current_sign_in_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "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"
    },
    "commit_email": {
      "type": "string"
    }
  }
}