summaryrefslogtreecommitdiff
path: root/spec/fixtures/product_intelligence/survey_response_schema.json
blob: 11454116d83f2a599f54a66aa49b9dfb58a3f1e0 (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
{
  "description": "Schema for a Gitlab survey_response event",
  "self": {
    "vendor": "com.gitlab",
    "name": "survey_response",
    "version": "1-0-0",
    "format": "jsonschema"
  },
  "type": "object",
  "additionalProperties": false,
  "required": ["survey_id", "response"],
  "properties": {
    "survey_id": {
      "description": "Survey ID",
      "type": "integer",
      "minimum": 0,
      "maximum": 2147483647
    },
    "response": {
      "description": "Response",
      "type": "string",
      "maxLength": 10000
    },
    "instance_id": {
      "description": "Instance ID",
      "type": ["integer", "null"],
      "minimum": 0,
      "maximum": 2147483647
    },
    "user_id": {
      "description": "User ID",
      "type": ["integer", "null"],
      "minimum": 0,
      "maximum": 2147483647
    },
    "email": {
      "description": "Email",
      "type": ["string", "null"],
      "maxLength": 255
    },
    "name": {
      "description": "Name",
      "type": ["string", "null"],
      "maxLength": 255
    },
    "username": {
      "description": "Username",
      "type": ["string", "null"],
      "maxLength": 255
    }
  }
}