Repository navigation
Expand file tree
/
Copy pathimport-batch-v1.schema.json
More file actions
43 lines (43 loc) · 2.06 KB
/
Copy pathimport-batch-v1.schema.json
File metadata and controls
43 lines (43 loc) · 2.06 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SocialDatabase import batch v1",
"type": "object",
"required": ["schema_version", "producer", "observed_at_utc", "records"],
"properties": {
"schema_version": {"const": 1},
"producer": {"type": "string", "minLength": 1},
"batch_id": {"type": "string", "minLength": 1, "maxLength": 128},
"source_name": {"type": "string", "minLength": 1},
"observed_at_utc": {"type": "string", "format": "date-time"},
"records": {
"type": "array",
"items": {
"type": "object",
"required": ["group_id", "user_id"],
"properties": {
"group_id": {"type": ["string", "number"]},
"user_id": {"type": ["string", "number"]},
"nickname": {"type": ["string", "number", "boolean", "null"]},
"card": {"type": ["string", "number", "boolean", "null"]},
"sex": {"type": ["string", "number", "boolean", "null"]},
"age": {"type": ["string", "number", "boolean", "null"]},
"area": {"type": ["string", "number", "boolean", "null"]},
"level": {"type": ["string", "number", "boolean", "null"]},
"qq_level": {"type": ["string", "number", "boolean", "null"]},
"join_time": {"type": ["string", "number", "boolean", "null"]},
"last_sent_time": {"type": ["string", "number", "boolean", "null"]},
"title_expire_time": {"type": ["string", "number", "boolean", "null"]},
"unfriendly": {"type": ["string", "number", "boolean", "null"]},
"card_changeable": {"type": ["string", "number", "boolean", "null"]},
"is_robot": {"type": ["string", "number", "boolean", "null"]},
"shut_up_timestamp": {"type": ["string", "number", "boolean", "null"]},
"role": {"type": ["string", "number", "boolean", "null"]},
"title": {"type": ["string", "number", "boolean", "null"]},
"group_name": {"type": ["string", "number", "boolean", "null"]}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}