generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
group_schema.json
61 lines (61 loc) · 1.74 KB
/
group_schema.json
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
{
"description": "This document records the details of a group",
"properties": {
"_id": {
"bsonType": "objectId"
},
"events": {
"bsonType": "array",
"description": "must be an array made of objectId and can be empty",
"items": {
"bsonType": "objectId"
},
"minItems": 0
},
"group_admin": {
"bsonType": "array",
"description": "must be an array made of a minimum of 1 objectId",
"items": {
"bsonType": "objectId"
},
"minItems": 1
},
"group_city": {
"bsonType": "string",
"description": "must be a string and is required"
},
"group_country": {
"bsonType": "string",
"description": "must be a string and is required"
},
"group_description": {
"bsonType": "string",
"description": "must be a string and is required"
},
"group_img_url": {
"bsonType": "string",
"description": "must be a string if the field exists"
},
"group_members": {
"bsonType": "array",
"description": "must be an array made of objectId and can be empty",
"items": {
"bsonType": "objectId"
},
"minItems": 0
},
"group_name": {
"bsonType": "string",
"description": "must be a unique string and is required",
"uniqueItems": true
}
},
"required": [
"_id",
"group_name",
"group_description",
"group_city",
"group_country"
],
"title": "group"
}