-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollection-page.schema.json
70 lines (70 loc) · 2.74 KB
/
collection-page.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
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm/external/activity-streams-2/collection-page",
"definitions": {
"single-collection-or-link": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"$ref":
"https://ns.adobe.com/xdm/external/activity-streams-2/collection"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/link"
}
]
},
"single-collectionPage-or-link": {
"anyOf": [
{
"$ref":
"https://ns.adobe.com/xdm/external/activity-streams-2/collection-page"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/link"
}
]
},
"extra-properties": {
"properties": {
"activitystreams:partOf": {
"description":
"Identifies the Collection to which a CollectionPage objects items belong. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-partof) document for a complete description.",
"$ref": "#/definitions/single-collection-or-link"
},
"activitystreams:next": {
"description":
"In a paged Collection, indicates the next page of items. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-next) document for a complete description.",
"$ref": "#/definitions/single-collectionPage-or-link"
},
"activitystreams:prev": {
"description":
"In a paged Collection, identifies the previous page of items. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-prev) document for a complete description.",
"$ref": "#/definitions/single-collectionPage-or-link"
}
}
}
},
"description":
"Used to represent distinct subsets of items from a `Collection`. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collectionpage) for a complete description of the `CollectionPage` object.",
"type": "object",
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/collection"
},
{
"$ref": "#/definitions/extra-properties"
}
],
"title": "Collection Page",
"meta:status": "experimental"
}