forked from jvm-bloggers/jvm-bloggers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
44 lines (44 loc) · 1.06 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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://jvm-bloggers.com/",
"type": "object",
"properties": {
"bloggers": {
"type": "array",
"uniqueItems": true,
"description": "An array of bloggers' data",
"items": {
"type": "object",
"properties": {
"jsonId": {
"type": "integer",
"description": "The unique identifier of the blogger within the file"
},
"name": {
"type": "string",
"minLength": 2,
"description": "Blogger name"
},
"rss": {
"type": "string",
"pattern": "^https?://[^ ]+$",
"description": "Valid URL to the blogger's RSS feed"
},
"twitter": {
"type": "string",
"pattern": "^@(\\w){1,15}$",
"description": "Optional blogger's twitter id"
}
},
"required": [
"jsonId",
"name",
"rss"
]
}
}
},
"required": [
"bloggers"
]
}