-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathpost-schema.json
49 lines (49 loc) · 1.17 KB
/
post-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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "simple-website-with-blog post schema",
"type": "object",
"properties": {
"contentDate": {
"description": "UTC date/time of content",
"type": "string",
"pattern": "^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\dZ$",
"default": "1970-01-01T00:00Z"
},
"contentJson": {
"description": "JSON object for content",
"default": null
},
"publishDate": {
"description": "UTC date/time to publish",
"type": "string",
"pattern": "^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\dZ$",
"default": "1970-01-01T00:00Z"
},
"related": {
"description": "IDs of related posts",
"type": "array",
"items": {
"description": "ID of related post",
"type": "string"
},
"default": []
},
"tags": {
"description": "Tags for post",
"type": "array",
"items": {
"description": "Tag for post",
"type": "string"
},
"default": []
},
"title": {
"description": "Title of post",
"type": "string"
}
},
"required": [
"title"
],
"additionalProperties": false
}