-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta.schema.json
154 lines (154 loc) · 3.83 KB
/
meta.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"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/meta",
"title": "Meta-Schema for XDM",
"type": "object",
"description": "All Schema files have to adhere to this style guide.",
"properties": {
"$schema": {
"const": "http://json-schema.org/draft-06/schema#"
},
"$id": {
"type": "string",
"format": "uri",
"pattern":
"(https://ns\\.adobe\\.com/xdm/[a-z0-9-/]*)|(http://schema\\.org/.*)|(http://ns.adobe.com/adobecloud/core/1.0.*)|(https://tools\\.ietf\\.org/html/draft-kelly-json-hal-08/.*)"
},
"meta:license": {
"type": "array",
"items": [
{
"type": "string",
"pattern": "Copyright 201[7-8] .*\\. All rights reserved\\."
},
{
"type": "string",
"const":
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license"
},
{
"type": "string",
"const":
"you may not use this file except in compliance with the License. You may obtain a copy"
},
{
"type": "string",
"const":
"of the License at https://creativecommons.org/licenses/by/4.0/"
}
]
},
"meta:extensible": {
"type": "boolean",
"default": false,
"description":
"Set this `true` if the schema can be extended by other schemas."
},
"meta:auditable": {
"type": "boolean",
"default": false,
"description":
"Set this `true` if entities of this schema can have an audit record."
},
"meta:extends": {
"oneOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
}
}
]
},
"type": {
"type": "string",
"const": "object"
},
"title": {
"type": "string",
"minLength": 3
}
},
"allOf": [
{
"oneOf": [
{
"properties": {
"meta:extensible": {
"const": true
}
},
"required": ["definitions", "meta:extensible"]
},
{
"properties": {
"meta:extensible": {
"const": false
}
}
}
]
},
{
"anyOf": [
{
"properties": {
"meta:extends": {
"type": "string",
"format": "uri"
}
},
"required": ["meta:extends", "allOf"]
},
{
"properties": {
"meta:extends": {
"type": "array",
"items": {
"format": "uri",
"type": "string"
}
}
},
"required": ["meta:extends", "allOf"]
},
{
"properties": {
"meta:extends": {
"default": null,
"const": null
}
}
}
]
},
{
"required": [
"$schema",
"$id",
"meta:license",
"type",
"title",
"description"
]
}
],
"meta:status": {
"title": "Status",
"description":
"Indicates if the schema’s level of stability. Defined values are: stable, stabilizing, and experimental.",
"type": "string",
"meta:enum": ["stable", "stabilizing", "experimental", "deprecated"]
}
}