forked from fharper/coffeechat
-
Notifications
You must be signed in to change notification settings - Fork 8
/
schema.json
125 lines (125 loc) · 2.8 KB
/
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
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "coffeechat.schema.json",
"title": "People",
"description": "List of awesome people doing coffee chat",
"type": "object",
"properties": {
"people": {
"type": "array",
"items": {
"$ref": "#/$defs/person"
}
}
},
"$defs": {
"person": {
"type": "object",
"description": "Information about one person",
"properties": {
"name": {
"description": "Full name",
"type": "string"
},
"title": {
"description": "Professional title",
"type": "string"
},
"company": {
"description": "Employer's company name",
"type": "string"
},
"city": {
"description": "City where you live",
"type": "string"
},
"country": {
"description": "Country where you live",
"type": "string"
},
"languages": {
"description": "Languages spoken well enough for a coffee chat",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"website": {
"description": "Website URL",
"$ref": "#/definitions/validURL"
},
"linkedin": {
"description": "LinkedIn profile URL",
"$ref": "#/definitions/validURL"
},
"twitter": {
"description": "Twitter account URL",
"$ref": "#/definitions/validURL"
},
"mastodon": {
"description": "Mastodon account URL",
"$ref": "#/definitions/validURL"
},
"github": {
"description": "Github account URL",
"$ref": "#/definitions/validURL"
},
"gitlab": {
"description": "Gitlab account URL",
"$ref": "#/definitions/validURL"
},
"codeberg": {
"description": "Codeberg account URL",
"$ref": "#/definitions/validURL"
},
"scheduling": {
"description": "Scheduling platform URL or mailto link",
"$ref": "#/definitions/validScheduling"
},
"online-only": {
"description": "Whether you are open to in-person Coffee Chat (default: false)",
"type": "boolean"
},
"topics": {
"description": "List of every topics you are de factor comfortable to discuss or give tips about",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
},
"preferences": {
"description": "List of emojis that defines your preferences",
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
}
},
"required": [
"name",
"title",
"company",
"languages",
"scheduling",
"topics",
"preferences"
]
}
},
"definitions": {
"validURL": {
"type": "string",
"pattern": "(^https?://)|(^$)"
},
"validScheduling": {
"type": "string",
"pattern": "(^https?://)|(^mailto:)"
}
}
}